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

Commit 523d6a9

Browse files
committed
Log warning when we have no preview
1 parent 01a1626 commit 523d6a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

synapse/handlers/sync.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,9 @@ async def _generate_room_entry(
24962496
preview_event_id,
24972497
allow_none=True,
24982498
)
2499+
else:
2500+
# This should never happen!
2501+
logger.warning("Beeper preview is missing! roomID=%s", room_id)
24992502

25002503
if room_sync or always_include:
25012504
notifs = await self.unread_notifs_for_room_id(room_id, sync_config)

0 commit comments

Comments
 (0)