You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
fix: show decrypted source on EditHistory -> ViewSource
pass correct props to the component
This commit is contained in:
@@ -77,6 +77,8 @@ export default class EditHistoryMessage extends React.PureComponent {
|
|||||||
roomId: this.props.mxEvent.getRoomId(),
|
roomId: this.props.mxEvent.getRoomId(),
|
||||||
eventId: this.props.mxEvent.getId(),
|
eventId: this.props.mxEvent.getId(),
|
||||||
content: this.props.mxEvent.event,
|
content: this.props.mxEvent.event,
|
||||||
|
isEncrypted: this.props.mxEvent.getType() !== this.props.mxEvent.getWireType(),
|
||||||
|
decryptedContent: this.props.mxEvent._clearEvent,
|
||||||
}, 'mx_Dialog_viewsource');
|
}, 'mx_Dialog_viewsource');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user