Override methods in NonPersistedEventEntry

This will prevent redactions to entries fetched from hs showing "message
is being redacted" and will instead show "message is redacted"
This commit is contained in:
RMidhunSuresh 2022-01-14 16:15:16 +05:30
parent b238357c53
commit 277638b107

View file

@ -31,4 +31,14 @@ export class NonPersistedEventEntry extends EventEntry {
get isNonPersisted() {
return true;
}
// overridden here because we reuse addLocalRelation() for updating this entry
// we don't want the RedactedTile created using this entry to ever show "is being redacted"
get isRedacting() {
return false;
}
get isRedacted() {
return !!this._pendingRedactions;
}
}