Consolidate duplicate code in notifier

This commit is contained in:
Erik Johnston 2015-07-02 11:40:56 +01:00
parent ddf7979531
commit bd1236c0ee
5 changed files with 25 additions and 38 deletions

View file

@ -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]
)