Merge pull request #2992 from matrix-org/bwindels/caneditcheckfix
Fix not being able to edit already edited messagespull/21833/head
commit
dbcf6af12d
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue