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

Commit

Permalink
Include m.sticker events in unencrypted rooms for previews
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Aug 22, 2023
1 parent ab86c68 commit bc38545
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions synapse/storage/databases/main/beeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ def beeper_preview_txn(txn: LoggingTransaction) -> Optional[Tuple[str, int]]:
AND e.room_id = ?
AND is_edit.event_id IS NULL
AND r.redacts IS NULL
AND (
e.type = 'm.room.message'
OR e.type = 'm.room.encrypted'
OR e.type = 'm.reaction'
AND e.type IN (
'm.room.message',
'm.room.encrypted',
'm.reaction',
'm.sticker'
)
AND CASE
-- Only find non-redacted reactions to our own messages
Expand Down

0 comments on commit bc38545

Please sign in to comment.