From c5c1b016090083451771bb82c2f67f40cb8beba9 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Tue, 7 Apr 2026 12:27:57 +0100 Subject: [PATCH] Add docstring on SlidingSyncInterestedRooms.all_rooms --- synapse/handlers/sliding_sync/room_lists.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/synapse/handlers/sliding_sync/room_lists.py b/synapse/handlers/sliding_sync/room_lists.py index 984f899ca9..3da2b63abb 100644 --- a/synapse/handlers/sliding_sync/room_lists.py +++ b/synapse/handlers/sliding_sync/room_lists.py @@ -134,6 +134,14 @@ class SlidingSyncInterestedRooms: """ all_rooms: set[str] + """ + The set of room IDs of all rooms that could appear in any list. + This set includes rooms that are outside the list ranges. + In other words, this is the set of all rooms that the client is + _interested_ in (in a pure sense), + even if these rooms are omitted from the current window (which + is, in a sense, just a computational optimisation). + """ room_membership_for_user_map: Mapping[str, RoomsForUserType]