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

Commit d2c6433

Browse files
author
Mathieu Velten
committed
typing: use is_host_joined which doesn'tt wait the room full state
Signed-off-by: Mathieu Velten <[email protected]>
1 parent 74f60ce commit d2c6433

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

synapse/handlers/typing.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,7 @@ async def _recv_edu(self, origin: str, content: JsonDict) -> None:
362362
)
363363
return
364364

365-
domains = await self._storage_controllers.state.get_current_hosts_in_room(
366-
room_id
367-
)
368-
369-
if self.server_name in domains:
365+
if await self.store.is_host_joined(room_id, self.server_name):
370366
logger.info("Got typing update from %s: %r", user_id, content)
371367
now = self.clock.time_msec()
372368
self._member_typing_until[member] = now + FEDERATION_TIMEOUT

0 commit comments

Comments
 (0)