Merge pull request #3151 from matrix-org/bwindels/e2e-edit-history
Make edit history work in encrypted rooms.
This commit is contained in:
commit
f18c389f2d
1 changed files with 2 additions and 1 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue