mirror of https://github.com/vector-im/riot-web
don't block unsent events from being edited
parent
f78aeae83a
commit
d13b3aa16c
|
@ -46,7 +46,8 @@ export function isContentActionable(mxEvent) {
|
|||
}
|
||||
|
||||
export function canEditContent(mxEvent) {
|
||||
return isContentActionable(mxEvent) &&
|
||||
return mxEvent.status !== EventStatus.CANCELLED &&
|
||||
mxEvent.getType() === 'm.room.message' &&
|
||||
mxEvent.getOriginalContent().msgtype === "m.text" &&
|
||||
mxEvent.getSender() === MatrixClientPeg.get().getUserId();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue