Explain which events make a server announcement room show up in sliding sync

This commit is contained in:
Paul Chobert committed 2026-10-28 16:01:28 +01:00
1 parent bddeb6929f
commit 799aa3f04c
1 file changed
+7 -1
+7 -1
View File
@@ -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: