diff --git a/src/utils/EventUtils.js b/src/utils/EventUtils.js index ffc47e2277..29af5ca9b5 100644 --- a/src/utils/EventUtils.js +++ b/src/utils/EventUtils.js @@ -52,6 +52,7 @@ export function canEditContent(mxEvent) { const content = mxEvent.getOriginalContent(); const {msgtype} = content; return (msgtype === "m.text" || msgtype === "m.emote") && + content.body && typeof content.body === 'string' && mxEvent.getSender() === MatrixClientPeg.get().getUserId(); }