forked from mystiq/hydrogen-web
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:
parent
b238357c53
commit
277638b107
1 changed files with 10 additions and 0 deletions
|
@ -31,4 +31,14 @@ export class NonPersistedEventEntry extends EventEntry {
|
||||||
get isNonPersisted() {
|
get isNonPersisted() {
|
||||||
return true;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue