diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-07-24 10:59:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 10:59:51 -0400 |
commit | b975fa2e9952f1f8ac2cddb15c287768bf9b0b4e (patch) | |
tree | 7d1965dcddbd0a028b4b1c378830fb3dedbe5685 /synapse/handlers | |
parent | Fix up types and comments that refer to Deferreds. (#7945) (diff) | |
download | synapse-b975fa2e9952f1f8ac2cddb15c287768bf9b0b4e.tar.xz |
Convert state resolution to async/await (#7942)
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/presence.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 8e99c83d9d..b3a3bb8c3f 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -928,8 +928,8 @@ class PresenceHandler(BasePresenceHandler): # TODO: Check that this is actually a new server joining the # room. - user_ids = await self.state.get_current_users_in_room(room_id) - user_ids = list(filter(self.is_mine_id, user_ids)) + users = await self.state.get_current_users_in_room(room_id) + user_ids = list(filter(self.is_mine_id, users)) states_d = await self.current_state_for_users(user_ids) |