From f285040e0bf3fe3c14e5cdf3c5596f9f30e2feba Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 17 May 2019 13:26:06 +0100 Subject: [PATCH] check msgtype of original event --- src/utils/EventUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/EventUtils.js b/src/utils/EventUtils.js index 81aa82057b..68f6d4b14e 100644 --- a/src/utils/EventUtils.js +++ b/src/utils/EventUtils.js @@ -47,6 +47,6 @@ export function isContentActionable(mxEvent) { export function canEditContent(mxEvent) { return isContentActionable(mxEvent) && - mxEvent.getContent().msgtype === "m.text" && + mxEvent.getOriginalContent().msgtype === "m.text" && mxEvent.getSender() === MatrixClientPeg.get().getUserId(); }