Merge pull request #2992 from matrix-org/bwindels/caneditcheckfix
Fix not being able to edit already edited messages
This commit is contained in:
commit
dbcf6af12d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue