get decrypted content if needed

pull/21833/head
Bruno Windels 2019-06-27 12:33:29 +02:00
parent 15d286ed93
commit c0e9edcf40
1 changed files with 2 additions and 1 deletions

View File

@ -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") {