Exclude reactions from room previews

This commit is contained in:
SpiritCroc 2024-05-09 09:39:30 +02:00
parent 649a7f00bf
commit 634049ce7a
2 changed files with 30 additions and 0 deletions

View File

@ -13,6 +13,7 @@ Note that this list may be incomplete or outdated.
- Unified room list instead of separating DMs and groups (TODO: setting)
- Do not exclude currently selected room when updating room sort order
- Do not force muted rooms to be sorted at the bottom
- Hide reactions from room previews
## Conversation screen

View File

@ -0,0 +1,29 @@
From a4cded706d0e451517e66b300324ad085eb86105 Mon Sep 17 00:00:00 2001
From: SpiritCroc <dev@spiritcroc.de>
Date: Thu, 14 Dec 2023 10:32:10 +0100
Subject: Don't preview reactions
---
src/stores/room-list/MessagePreviewStore.ts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/stores/room-list/MessagePreviewStore.ts b/src/stores/room-list/MessagePreviewStore.ts
index a3c44084d5..f412cf3b89 100644
--- a/src/stores/room-list/MessagePreviewStore.ts
+++ b/src/stores/room-list/MessagePreviewStore.ts
@@ -65,10 +65,12 @@ const PREVIEWS: Record<
isState: false,
previewer: new StickerEventPreview(),
},
+ /*
"m.reaction": {
isState: false,
previewer: new ReactionEventPreview(),
},
+ */
[M_POLL_START.name]: {
isState: false,
previewer: new PollStartEventPreview(),
--
2.45.0