fix: show decrypted source on EditHistory -> ViewSource

pass correct props to the component
This commit is contained in:
Panagiotis 2021-03-05 19:57:37 +02:00
parent 725162ee00
commit 2c64dac514

View file

@ -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');
}; };