diff options
author | Eric Eastwood <erice@element.io> | 2022-08-24 14:15:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 14:15:37 -0500 |
commit | 1a209efdb2a6c51e52dd277de7581099852877ae (patch) | |
tree | 7a958e50f974ef92f02d2223c53c9085b81a4aae /synapse/handlers/presence.py | |
parent | Directly lookup local membership instead of getting all members in a room fir... (diff) | |
download | synapse-1a209efdb2a6c51e52dd277de7581099852877ae.tar.xz |
Update `get_users_in_room` mis-use to get hosts with dedicated `get_current_hosts_in_room` (#13605)
See https://github.com/matrix-org/synapse/pull/13575#discussion_r953023755
Diffstat (limited to 'synapse/handlers/presence.py')
-rw-r--r-- | synapse/handlers/presence.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 741504ba9f..4e575ffbaa 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -2051,8 +2051,7 @@ async def get_interested_remotes( ) for room_id, states in room_ids_to_states.items(): - user_ids = await store.get_users_in_room(room_id) - hosts = {get_domain_from_id(user_id) for user_id in user_ids} + hosts = await store.get_current_hosts_in_room(room_id) for host in hosts: hosts_and_states.setdefault(host, set()).update(states) |