mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix joined_rooms
/joined_room_ids
usage (#17208)
This change was introduced in https://github.com/element-hq/synapse/pull/17203 But then https://github.com/element-hq/synapse/pull/17207 was reverted which brought back usage `joined_rooms` that needed to be updated. Wasn't caught because `develop` wasn't up to date before merging.
This commit is contained in:
parent
52a649580f
commit
fe07995e69
1
changelog.d/17208.misc
Normal file
1
changelog.d/17208.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Rename to be obvious: `joined_rooms` -> `joined_room_ids`.
|
@ -1875,7 +1875,7 @@ class SyncHandler:
|
|||||||
# or if the changed user is the syncing user (as we always
|
# or if the changed user is the syncing user (as we always
|
||||||
# want to include device list updates of their own devices).
|
# want to include device list updates of their own devices).
|
||||||
if user_id == changed_user_id or any(
|
if user_id == changed_user_id or any(
|
||||||
rid in joined_rooms for rid in entries
|
rid in joined_room_ids for rid in entries
|
||||||
):
|
):
|
||||||
users_that_have_changed.add(changed_user_id)
|
users_that_have_changed.add(changed_user_id)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user