don't block unsent events from being edited

pull/21833/head
Bruno Windels 2019-06-12 11:20:21 +02:00
parent f78aeae83a
commit d13b3aa16c
1 changed files with 2 additions and 1 deletions

View File

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