File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ Rename to be obvious: `joined_rooms` -> `joined_room_ids`.
Original file line number Diff line number Diff line change @@ -1850,7 +1850,7 @@ async def _generate_sync_entry_for_device_list(
1850
1850
1851
1851
users_that_have_changed = set ()
1852
1852
1853
- joined_rooms = sync_result_builder .joined_room_ids
1853
+ joined_room_ids = sync_result_builder .joined_room_ids
1854
1854
1855
1855
# Step 1a, check for changes in devices of users we share a room
1856
1856
# with
@@ -1909,7 +1909,7 @@ async def _generate_sync_entry_for_device_list(
1909
1909
# Remove any users that we still share a room with.
1910
1910
left_users_rooms = await self .store .get_rooms_for_users (newly_left_users )
1911
1911
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 ):
1913
1913
newly_left_users .discard (user_id )
1914
1914
1915
1915
return DeviceListUpdates (changed = users_that_have_changed , left = newly_left_users )
You can’t perform that action at this time.
0 commit comments