Disable edits on redacted events
Fixes https://github.com/vector-im/riot-web/issues/12633
This commit is contained in:
parent
4fd1d8a5e7
commit
e4d323d2f2
2 changed files with 8 additions and 1 deletions
|
@ -46,7 +46,7 @@ export function isContentActionable(mxEvent) {
|
|||
}
|
||||
|
||||
export function canEditContent(mxEvent) {
|
||||
if (mxEvent.status === EventStatus.CANCELLED || mxEvent.getType() !== "m.room.message") {
|
||||
if (mxEvent.status === EventStatus.CANCELLED || mxEvent.getType() !== "m.room.message" || mxEvent.isRedacted()) {
|
||||
return false;
|
||||
}
|
||||
const content = mxEvent.getOriginalContent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue