1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-11-29 21:23:11 +03:00

Implement deep-linking for threads (matrix.to) (#7003)

This commit is contained in:
Germain
2021-10-22 09:30:36 +01:00
committed by GitHub
parent bc32f05fcb
commit e20ac7bf1e
8 changed files with 122 additions and 12 deletions

View File

@@ -75,6 +75,8 @@ interface IState {
groupRoomId?: string;
groupId?: string;
event: MatrixEvent;
initialEvent?: MatrixEvent;
initialEventHighlighted?: boolean;
}
@replaceableComponent("structures.RightPanel")
@@ -209,6 +211,8 @@ export default class RightPanel extends React.Component<IProps, IState> {
groupId: payload.groupId,
member: payload.member,
event: payload.event,
initialEvent: payload.initialEvent,
initialEventHighlighted: payload.highlighted,
verificationRequest: payload.verificationRequest,
verificationRequestPromise: payload.verificationRequestPromise,
widgetId: payload.widgetId,
@@ -244,7 +248,7 @@ export default class RightPanel extends React.Component<IProps, IState> {
}
};
render() {
public render(): JSX.Element {
let panel = <div />;
const roomId = this.props.room ? this.props.room.roomId : undefined;
@@ -327,6 +331,8 @@ export default class RightPanel extends React.Component<IProps, IState> {
resizeNotifier={this.props.resizeNotifier}
onClose={this.onClose}
mxEvent={this.state.event}
initialEvent={this.state.initialEvent}
initialEventHighlighted={this.state.initialEventHighlighted}
permalinkCreator={this.props.permalinkCreator}
e2eStatus={this.props.e2eStatus} />;
break;