From 6517bd15ac8f6784e747880dc64b5de6aff7846f Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 29 Nov 2021 17:35:04 +0000 Subject: Clean up reference to homeserver store --- synapse/handlers/typing.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py index 1676ebd057..985b8ff3be 100644 --- a/synapse/handlers/typing.py +++ b/synapse/handlers/typing.py @@ -442,7 +442,7 @@ class TypingWriterHandler(FollowerTypingHandler): class TypingNotificationEventSource(EventSource[int, JsonDict]): def __init__(self, hs: "HomeServer"): - self.hs = hs + self.store = hs.get_datastore() self.clock = hs.get_clock() # We can't call get_typing_handler here because there's a cycle: # @@ -482,9 +482,7 @@ class TypingNotificationEventSource(EventSource[int, JsonDict]): if handler._room_serials[room_id] <= from_key: continue - if not await service.matches_user_in_member_list( - room_id, handler.store - ): + if not await service.matches_user_in_member_list(room_id, self.store): continue events.append(self._make_event_for(room_id)) -- cgit 1.4.1