From c0cfa8ad00cd7f92d2a61db0de8839f4accbe56d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 17 May 2019 10:26:19 +0100 Subject: [PATCH] only allow editing of text messages --- src/utils/EventUtils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/EventUtils.js b/src/utils/EventUtils.js index ac415ca6de..81aa82057b 100644 --- a/src/utils/EventUtils.js +++ b/src/utils/EventUtils.js @@ -47,5 +47,6 @@ export function isContentActionable(mxEvent) { export function canEditContent(mxEvent) { return isContentActionable(mxEvent) && + mxEvent.getContent().msgtype === "m.text" && mxEvent.getSender() === MatrixClientPeg.get().getUserId(); }