0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 12:23:48 +01:00

Rename to be obvious: joined_rooms -> joined_room_ids (#17203)

Split out from https://github.com/element-hq/synapse/pull/17167
This commit is contained in:
Eric Eastwood 2024-05-16 11:55:51 -05:00 committed by GitHub
parent 28a948f04f
commit 52a649580f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

1
changelog.d/17203.misc Normal file
View file

@ -0,0 +1 @@
Rename to be obvious: `joined_rooms` -> `joined_room_ids`.

View file

@ -1850,7 +1850,7 @@ class SyncHandler:
users_that_have_changed = set() users_that_have_changed = set()
joined_rooms = sync_result_builder.joined_room_ids joined_room_ids = sync_result_builder.joined_room_ids
# Step 1a, check for changes in devices of users we share a room # Step 1a, check for changes in devices of users we share a room
# with # with
@ -1909,7 +1909,7 @@ class SyncHandler:
# Remove any users that we still share a room with. # Remove any users that we still share a room with.
left_users_rooms = await self.store.get_rooms_for_users(newly_left_users) left_users_rooms = await self.store.get_rooms_for_users(newly_left_users)
for user_id, entries in left_users_rooms.items(): for user_id, entries in left_users_rooms.items():
if any(rid in joined_rooms for rid in entries): if any(rid in joined_room_ids for rid in entries):
newly_left_users.discard(user_id) newly_left_users.discard(user_id)
return DeviceListUpdates(changed=users_that_have_changed, left=newly_left_users) return DeviceListUpdates(changed=users_that_have_changed, left=newly_left_users)