diff options
author | Erik Johnston <erik@matrix.org> | 2021-05-05 16:49:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-05 16:49:34 +0100 |
commit | d0aee697ac0587c005bc1048f5036979331f1101 (patch) | |
tree | c0bf6d4529c11b59fde71533b4e06def8e196375 /synapse/handlers/sync.py | |
parent | Docker healthcheck timings - add startup delay and changed interval (#9913) (diff) | |
download | synapse-d0aee697ac0587c005bc1048f5036979331f1101.tar.xz |
Use get_current_users_in_room from store and not StateHandler (#9910)
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r-- | synapse/handlers/sync.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index a9a3ee05c3..0fcc1532da 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -1190,7 +1190,7 @@ class SyncHandler: # Step 1b, check for newly joined rooms for room_id in newly_joined_rooms: - joined_users = await self.state.get_current_users_in_room(room_id) + joined_users = await self.store.get_users_in_room(room_id) newly_joined_or_invited_users.update(joined_users) # TODO: Check that these users are actually new, i.e. either they @@ -1206,7 +1206,7 @@ class SyncHandler: # Now find users that we no longer track for room_id in newly_left_rooms: - left_users = await self.state.get_current_users_in_room(room_id) + left_users = await self.store.get_users_in_room(room_id) newly_left_users.update(left_users) # Remove any users that we still share a room with. @@ -1361,7 +1361,7 @@ class SyncHandler: extra_users_ids = set(newly_joined_or_invited_users) for room_id in newly_joined_rooms: - users = await self.state.get_current_users_in_room(room_id) + users = await self.store.get_users_in_room(room_id) extra_users_ids.update(users) extra_users_ids.discard(user.to_string()) |