From 0e4d08f952b9ca29695b801d055e4cb2ca32de5c Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 18 Sep 2024 00:04:26 -0500 Subject: [PATCH] No longer need to `filter_membership_for_sync` We already don't fetch self-leaves and add back `newly_left` --- synapse/handlers/sliding_sync/room_lists.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/synapse/handlers/sliding_sync/room_lists.py b/synapse/handlers/sliding_sync/room_lists.py index 419ec86a74..8c6eb20bf6 100644 --- a/synapse/handlers/sliding_sync/room_lists.py +++ b/synapse/handlers/sliding_sync/room_lists.py @@ -342,16 +342,7 @@ class SlidingSyncRoomLists: ) if sync_config.lists: - sync_room_map = { - room_id: room_membership_for_user - for room_id, room_membership_for_user in room_membership_for_user_map.items() - # TODO: Do we need to do this anymore? - if filter_membership_for_sync( - user_id=user_id, - room_membership_for_user=room_membership_for_user, - newly_left=room_id in newly_left_room_map, - ) - } + sync_room_map = room_membership_for_user_map with start_active_span("assemble_sliding_window_lists"): for list_key, list_config in sync_config.lists.items(): # Apply filters