diff options
author | Erik Johnston <erik@matrix.org> | 2015-07-02 11:40:56 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-07-02 11:46:05 +0100 |
commit | bd1236c0ee5b3703de51dc773a02da92e0960d0f (patch) | |
tree | 3316e5155f371539a7f1c740eacbad273598610d /synapse/handlers/receipts.py | |
parent | Add receipts_key to StreamToken (diff) | |
download | synapse-bd1236c0ee5b3703de51dc773a02da92e0960d0f.tar.xz |
Consolidate duplicate code in notifier
Diffstat (limited to 'synapse/handlers/receipts.py')
-rw-r--r-- | synapse/handlers/receipts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/receipts.py b/synapse/handlers/receipts.py index f3f7050633..f0d12d35f4 100644 --- a/synapse/handlers/receipts.py +++ b/synapse/handlers/receipts.py @@ -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] ) |