Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit bc38545

Browse files
committed
Include m.sticker events in unencrypted rooms for previews
1 parent ab86c68 commit bc38545

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

synapse/storage/databases/main/beeper.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ def beeper_preview_txn(txn: LoggingTransaction) -> Optional[Tuple[str, int]]:
6262
AND e.room_id = ?
6363
AND is_edit.event_id IS NULL
6464
AND r.redacts IS NULL
65-
AND (
66-
e.type = 'm.room.message'
67-
OR e.type = 'm.room.encrypted'
68-
OR e.type = 'm.reaction'
65+
AND e.type IN (
66+
'm.room.message',
67+
'm.room.encrypted',
68+
'm.reaction',
69+
'm.sticker'
6970
)
7071
AND CASE
7172
-- Only find non-redacted reactions to our own messages

0 commit comments

Comments
 (0)