diff options
author | Eric Eastwood <eric.eastwood@beta.gouv.fr> | 2024-08-08 12:55:12 -0500 |
---|---|---|
committer | Eric Eastwood <eric.eastwood@beta.gouv.fr> | 2024-08-08 12:55:12 -0500 |
commit | 10b5de8c675e1c92036919d1dfcfb15428ac3df8 (patch) | |
tree | 218ff2e8fcff9d654981d8c1a74c0ae9211ca49c | |
parent | Merge branch 'develop' into madlittlemods/sliding-sync-must-await-full-state (diff) | |
download | synapse-10b5de8c675e1c92036919d1dfcfb15428ac3df8.tar.xz |
Remove duplicate filtering
See https://github.com/element-hq/synapse/pull/17538#discussion_r1709649930
-rw-r--r-- | synapse/handlers/sliding_sync.py | 17 |
1 files changed, 0 insertions, 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: |