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

Commit e03dde2

Browse files
Clean up an indirect reference to the homeserver datastore (#11914)
1 parent 0c4878c commit e03dde2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.d/11914.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Various refactors to the typing notifications code.

synapse/handlers/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def process_replication_rows(
446446

447447
class TypingNotificationEventSource(EventSource[int, JsonDict]):
448448
def __init__(self, hs: "HomeServer"):
449-
self.hs = hs
449+
self._main_store = hs.get_datastore()
450450
self.clock = hs.get_clock()
451451
# We can't call get_typing_handler here because there's a cycle:
452452
#
@@ -487,7 +487,7 @@ async def get_new_events_as(
487487
continue
488488

489489
if not await service.matches_user_in_member_list(
490-
room_id, handler.store
490+
room_id, self._main_store
491491
):
492492
continue
493493

0 commit comments

Comments
 (0)