From 10b5de8c675e1c92036919d1dfcfb15428ac3df8 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Thu, 8 Aug 2024 12:55:12 -0500 Subject: Remove duplicate filtering See https://github.com/element-hq/synapse/pull/17538#discussion_r1709649930 --- synapse/handlers/sliding_sync.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py index 77ec09bc85..99510254f3 100644 --- a/synapse/handlers/sliding_sync.py +++ b/synapse/handlers/sliding_sync.py @@ -661,23 +661,6 @@ class SlidingSyncHandler: filtered_sync_room_map, to_token ) - if not lazy_loading: - # Exclude partially-stated rooms unless the `required_state` - # only has `["m.room.member", "$LAZY"]` for membership - # (lazy-loading room members). - filtered_sync_room_map = { - room_id: room - for room_id, room in filtered_sync_room_map.items() - if not partial_state_room_map.get(room_id) - } - - all_rooms.update(filtered_sync_room_map) - - # Sort the list - sorted_room_info = await self.sort_rooms( - filtered_sync_room_map, to_token - ) - ops: List[SlidingSyncResult.SlidingWindowList.Operation] = [] if list_config.ranges: for range in list_config.ranges: -- cgit 1.4.1