From 2c64dac5140004e41623d3337d163a9ed1d0babb Mon Sep 17 00:00:00 2001 From: Panagiotis <27917356+panoschal@users.noreply.github.com> Date: Fri, 5 Mar 2021 19:57:37 +0200 Subject: [PATCH] fix: show decrypted source on EditHistory -> ViewSource pass correct props to the component --- src/components/views/messages/EditHistoryMessage.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/messages/EditHistoryMessage.js b/src/components/views/messages/EditHistoryMessage.js index df27773a40..68a3c95745 100644 --- a/src/components/views/messages/EditHistoryMessage.js +++ b/src/components/views/messages/EditHistoryMessage.js @@ -77,6 +77,8 @@ export default class EditHistoryMessage extends React.PureComponent { roomId: this.props.mxEvent.getRoomId(), eventId: this.props.mxEvent.getId(), content: this.props.mxEvent.event, + isEncrypted: this.props.mxEvent.getType() !== this.props.mxEvent.getWireType(), + decryptedContent: this.props.mxEvent._clearEvent, }, 'mx_Dialog_viewsource'); };