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

Commit 75cc89c

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

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

changelog.d/13830.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Faster room joins: fix typing EDU being stuck because the handler was waiting for the full state, while this is not necessary.

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)