From c0e9edcf409a71ea14db9fe368c8f1f753be240a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 27 Jun 2019 12:33:29 +0200 Subject: [PATCH] get decrypted content if needed --- src/components/views/messages/EditHistoryMessage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/messages/EditHistoryMessage.js b/src/components/views/messages/EditHistoryMessage.js index 85a704641a..fef9c362c6 100644 --- a/src/components/views/messages/EditHistoryMessage.js +++ b/src/components/views/messages/EditHistoryMessage.js @@ -37,7 +37,8 @@ export default class EditHistoryMessage extends React.PureComponent { render() { const {mxEvent} = this.props; - const content = mxEvent.event.content["m.new_content"] || mxEvent.event.content; + const originalContent = mxEvent.getOriginalContent(); + const content = originalContent["m.new_content"] || originalContent; const contentElements = HtmlUtils.bodyToHtml(content); let contentContainer; if (mxEvent.getContent().msgtype === "m.emote") {