mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:16:07 -04:00
Consolidate duplicate code in notifier
This commit is contained in:
parent
ddf7979531
commit
bd1236c0ee
5 changed files with 25 additions and 38 deletions
|
@ -88,7 +88,7 @@ class ReceiptsHandler(BaseHandler):
|
|||
self._latest_serial = max(self._latest_serial, stream_id)
|
||||
|
||||
with PreserveLoggingContext():
|
||||
self.notifier.on_new_user_event(
|
||||
self.notifier.on_new_event(
|
||||
"recei[t_key", self._latest_serial, rooms=[room_id]
|
||||
)
|
||||
|
||||
|
@ -102,7 +102,7 @@ class ReceiptsHandler(BaseHandler):
|
|||
|
||||
receipt["remotedomains"] = remotedomains
|
||||
|
||||
self.notifier.on_new_user_event(
|
||||
self.notifier.on_new_event(
|
||||
"receipt_key", self._latest_room_serial, rooms=[room_id]
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue