summary refs log tree commit diff
path: root/synapse/handlers/typing.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-13 13:42:21 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-13 13:42:21 +0100
commit63878c03794d33a8767425e114845159e5c1cb9a (patch)
tree0de6af26d7acf38eb0de25adddd0fbe83e58642b /synapse/handlers/typing.py
parentMerge branch 'notifier_unify' into notifier_performance (diff)
downloadsynapse-63878c03794d33a8767425e114845159e5c1cb9a.tar.xz
Don't bother checking for updates if the stream token hasn't advanced for a user
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r--synapse/handlers/typing.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py
index 64fe51aa3e..a9895292c2 100644
--- a/synapse/handlers/typing.py
+++ b/synapse/handlers/typing.py
@@ -218,7 +218,9 @@ class TypingNotificationHandler(BaseHandler):
         self._room_serials[room_id] = self._latest_room_serial
 
         with PreserveLoggingContext():
-            self.notifier.on_new_user_event(rooms=[room_id])
+            self.notifier.on_new_user_event(
+                "typing_key", self._latest_room_serial, rooms=[room_id]
+            )
 
 
 class TypingNotificationEventSource(object):