mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
check msgtype of original event
This commit is contained in:
parent
4c94b398d3
commit
f285040e0b
@ -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…
x
Reference in New Issue
Block a user