Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
typing: use is_host_joined which doesn't wait the room full state
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Velten <mathieuv@matrix.org>
  • Loading branch information
Mathieu Velten committed Sep 16, 2022
1 parent 74f60ce commit 0ea5558
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions synapse/handlers/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,7 @@ async def _recv_edu(self, origin: str, content: JsonDict) -> None:
)
return

domains = await self._storage_controllers.state.get_current_hosts_in_room(
room_id
)

if self.server_name in domains:
if await self.store.is_host_joined(room_id, self.server_name):
logger.info("Got typing update from %s: %r", user_id, content)
now = self.clock.time_msec()
self._member_typing_until[member] = now + FEDERATION_TIMEOUT
Expand Down

0 comments on commit 0ea5558

Please sign in to comment.