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

Fix not being able to edit already edited messages
This commit is contained in:
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

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