Skip to content
Snippets Groups Projects
Unverified Commit e03dde25 authored by Andrew Morgan's avatar Andrew Morgan Committed by GitHub
Browse files

Clean up an indirect reference to the homeserver datastore (#11914)

parent 0c4878ca
No related branches found
No related tags found
No related merge requests found
Various refactors to the typing notifications code.
\ No newline at end of file
...@@ -446,7 +446,7 @@ class TypingWriterHandler(FollowerTypingHandler): ...@@ -446,7 +446,7 @@ class TypingWriterHandler(FollowerTypingHandler):
class TypingNotificationEventSource(EventSource[int, JsonDict]): class TypingNotificationEventSource(EventSource[int, JsonDict]):
def __init__(self, hs: "HomeServer"): def __init__(self, hs: "HomeServer"):
self.hs = hs self._main_store = hs.get_datastore()
self.clock = hs.get_clock() self.clock = hs.get_clock()
# We can't call get_typing_handler here because there's a cycle: # We can't call get_typing_handler here because there's a cycle:
# #
...@@ -487,7 +487,7 @@ class TypingNotificationEventSource(EventSource[int, JsonDict]): ...@@ -487,7 +487,7 @@ class TypingNotificationEventSource(EventSource[int, JsonDict]):
continue continue
if not await service.matches_user_in_member_list( if not await service.matches_user_in_member_list(
room_id, handler.store room_id, self._main_store
): ):
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment