summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-11-29 17:35:04 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2021-12-08 18:30:52 +0000
commit6517bd15ac8f6784e747880dc64b5de6aff7846f (patch)
tree810525e941c98b190793678a28f05fdf2c3187ea
parentrename ApplicationService.is_interested_in_room_id -> is_room_id_in_namespace (diff)
downloadsynapse-6517bd15ac8f6784e747880dc64b5de6aff7846f.tar.xz
Clean up reference to homeserver store
-rw-r--r--synapse/handlers/typing.py6
1 files 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))