Implement deep-linking for threads (matrix.to) (#7003)
This commit is contained in:
parent
bc32f05fcb
commit
e20ac7bf1e
8 changed files with 122 additions and 12 deletions
|
@ -19,12 +19,18 @@ import { Action } from "../actions";
|
|||
import dis from '../dispatcher';
|
||||
import { SetRightPanelPhasePayload } from "../payloads/SetRightPanelPhasePayload";
|
||||
|
||||
export const dispatchShowThreadEvent = (event: MatrixEvent) => {
|
||||
export const dispatchShowThreadEvent = (
|
||||
rootEvent: MatrixEvent,
|
||||
initialEvent?: MatrixEvent,
|
||||
highlighted?: boolean,
|
||||
) => {
|
||||
dis.dispatch({
|
||||
action: Action.SetRightPanelPhase,
|
||||
phase: RightPanelPhases.ThreadView,
|
||||
refireParams: {
|
||||
event,
|
||||
event: rootEvent,
|
||||
initialEvent,
|
||||
highlighted,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue