Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 3952297

Browse files
authored
Calculate rooms changed for device lists to work. (#14810)
Back-out some changes from 7e582a2 (#14786) which skipped necessary logic to calculate device lists properly.
1 parent f417fb8 commit 3952297

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

changelog.d/14810.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a bug introduced in Synapse 1.75.0rc1 where device lists could be miscalculated with some sync filters.

synapse/api/filtering.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,6 @@ async def filter_room_account_data(
283283
await self._room_filter.filter(events)
284284
)
285285

286-
def blocks_all_rooms(self) -> bool:
287-
return self._room_filter.filters_all_rooms()
288-
289286
def blocks_all_presence(self) -> bool:
290287
return (
291288
self._presence_filter.filters_all_types()

synapse/handlers/sync.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,10 +1793,6 @@ async def _generate_sync_entry_for_rooms(
17931793
- newly_left_users
17941794
"""
17951795

1796-
# If the request doesn't care about rooms then nothing to do!
1797-
if sync_result_builder.sync_config.filter_collection.blocks_all_rooms():
1798-
return set(), set(), set(), set()
1799-
18001796
since_token = sync_result_builder.since_token
18011797

18021798
# 1. Start by fetching all ephemeral events in rooms we've joined (if required).

0 commit comments

Comments
 (0)