mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
Override hide redaction preference for thread root (#7546)
This commit is contained in:
parent
7ccbf814df
commit
52dd590b49
@ -62,7 +62,9 @@ export default function shouldHideEvent(ev: MatrixEvent, ctx?: IRoomState): bool
|
||||
name => SettingsStore.getValue(name, ev.getRoomId());
|
||||
|
||||
// Hide redacted events
|
||||
if (ev.isRedacted() && !isEnabled('showRedactions')) return true;
|
||||
// Deleted events with a thread are always shown regardless of user preference
|
||||
// to make sure that a thread can be accessible even if the root message is deleted
|
||||
if (ev.isRedacted() && !isEnabled('showRedactions') && !ev.getThread()) return true;
|
||||
|
||||
// Hide replacement events since they update the original tile (if enabled)
|
||||
if (ev.isRelation("m.replace")) return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user