From 799aa3f04c35051efc2bba902f2d20fbc600e0aa Mon Sep 17 00:00:00 2001 From: Paul Chobert Date: Wed, 28 Oct 2026 16:01:28 +0100 Subject: [PATCH] Explain which events make a server announcement room show up in sliding sync --- synapse/handlers/server_announcements.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/synapse/handlers/server_announcements.py b/synapse/handlers/server_announcements.py index fc1dac7a89..971009326f 100644 --- a/synapse/handlers/server_announcements.py +++ b/synapse/handlers/server_announcements.py @@ -33,7 +33,13 @@ SYNTHETIC_JOIN_EVENT_ID_PREFIX = "$fake_announcement_join_" SERVER_ANNOUNCEMENT_EVENT_TYPES = SLIDING_SYNC_DEFAULT_BUMP_EVENT_TYPES - { EventTypes.Create } -"""The event types that make an announcement room show up in sliding sync.""" +"""The event types that make an announcement room show up in sliding sync. + +These are the types that bump a room in sliding sync, so the room shows up on +the same activity that moves the user's other rooms up their list and sets its +`bump_stamp`. `m.room.create` is left out so that a room nobody has announced +anything in yet is not listed. +""" def make_synthetic_join_event_id(room_id: str, user_id: str) -> str: