diff options
author | Erik Johnston <erik@matrix.org> | 2020-07-15 15:42:07 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2020-07-15 15:42:07 +0100 |
commit | 3a3a61846096527def61f656b2fc816a7ebbfdd1 (patch) | |
tree | e6ed0322dcefccc05f34337257f1d0d20a4ed595 | |
parent | Convert E2E key and room key handlers to async/await. (#7851) (diff) | |
download | synapse-3a3a61846096527def61f656b2fc816a7ebbfdd1.tar.xz |
Use get_users_in_room rather than state handler in typing for speed
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/typing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py index 879c4c07c6..eb928a9371 100644 --- a/synapse/handlers/typing.py +++ b/synapse/handlers/typing.py @@ -185,7 +185,7 @@ class TypingHandler(object): async def _push_remote(self, member, typing): try: - users = await self.state.get_current_users_in_room(member.room_id) + users = await self.state.get_users_in_room(member.room_id) self._member_last_federation_poke[member] = self.clock.time_msec() now = self.clock.time_msec() @@ -224,7 +224,7 @@ class TypingHandler(object): ) return - users = await self.state.get_current_users_in_room(room_id) + users = await self.store.get_users_in_room(room_id) domains = {get_domain_from_id(u) for u in users} if self.server_name in domains: |