No longer need to `filter_membership_for_sync`
We already don't fetch self-leaves and add back `newly_left`
This commit is contained in:
parent
45200315da
commit
0e4d08f952
|
@ -342,16 +342,7 @@ class SlidingSyncRoomLists:
|
||||||
)
|
)
|
||||||
|
|
||||||
if sync_config.lists:
|
if sync_config.lists:
|
||||||
sync_room_map = {
|
sync_room_map = room_membership_for_user_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,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
with start_active_span("assemble_sliding_window_lists"):
|
with start_active_span("assemble_sliding_window_lists"):
|
||||||
for list_key, list_config in sync_config.lists.items():
|
for list_key, list_config in sync_config.lists.items():
|
||||||
# Apply filters
|
# Apply filters
|
||||||
|
|
Loading…
Reference in New Issue