only allow editing of text messages

pull/21833/head
Bruno Windels 2019-05-17 10:26:19 +01:00
parent 0070540b8a
commit c0cfa8ad00
1 changed files with 1 additions and 0 deletions

View File

@ -47,5 +47,6 @@ export function isContentActionable(mxEvent) {
export function canEditContent(mxEvent) { export function canEditContent(mxEvent) {
return isContentActionable(mxEvent) && return isContentActionable(mxEvent) &&
mxEvent.getContent().msgtype === "m.text" &&
mxEvent.getSender() === MatrixClientPeg.get().getUserId(); mxEvent.getSender() === MatrixClientPeg.get().getUserId();
} }