mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-27 00:09:59 -05:00
Clean up an indirect reference to the homeserver datastore (#11914)
This commit is contained in:
parent
0c4878caf2
commit
e03dde259b
1
changelog.d/11914.misc
Normal file
1
changelog.d/11914.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Various refactors to the typing notifications code.
|
@ -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]):
|
|||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user