Skip to content

Commit 52a6495

Browse files
Rename to be obvious: joined_rooms -> joined_room_ids (#17203)
Split out from #17167
1 parent 28a948f commit 52a6495

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.d/17203.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rename to be obvious: `joined_rooms` -> `joined_room_ids`.

synapse/handlers/sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,7 @@ async def _generate_sync_entry_for_device_list(
18501850

18511851
users_that_have_changed = set()
18521852

1853-
joined_rooms = sync_result_builder.joined_room_ids
1853+
joined_room_ids = sync_result_builder.joined_room_ids
18541854

18551855
# Step 1a, check for changes in devices of users we share a room
18561856
# with
@@ -1909,7 +1909,7 @@ async def _generate_sync_entry_for_device_list(
19091909
# Remove any users that we still share a room with.
19101910
left_users_rooms = await self.store.get_rooms_for_users(newly_left_users)
19111911
for user_id, entries in left_users_rooms.items():
1912-
if any(rid in joined_rooms for rid in entries):
1912+
if any(rid in joined_room_ids for rid in entries):
19131913
newly_left_users.discard(user_id)
19141914

19151915
return DeviceListUpdates(changed=users_that_have_changed, left=newly_left_users)

0 commit comments

Comments
 (0)