Merge pull request #2992 from matrix-org/bwindels/caneditcheckfix

Fix not being able to edit already edited messages
pull/21833/head
Bruno Windels 2019-05-17 12:32:56 +00:00 committed by GitHub
commit dbcf6af12d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}