mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
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
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user