summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-03-03 14:57:45 +0000
committerMark Haines <mark.haines@matrix.org>2016-03-03 14:57:45 +0000
commitddf9e7b3027eee61086ebfb447c5fa33e9b640fe (patch)
tree01b3fee90b76b2b028bf2d8e904f24210cd4d39f /synapse/handlers/message.py
parentHook push rules up to the replication API (diff)
downloadsynapse-ddf9e7b3027eee61086ebfb447c5fa33e9b640fe.tar.xz
Hook up the push rules to the notifier
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index afa7c9c36c..2fa12c8f2b 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -647,8 +647,8 @@ class MessageHandler(BaseHandler):
             user_id, messages, is_peeking=is_peeking
         )
 
-        start_token = StreamToken(token[0], 0, 0, 0, 0)
-        end_token = StreamToken(token[1], 0, 0, 0, 0)
+        start_token = StreamToken.START.copy_and_replace("room_key", token[0])
+        end_token = StreamToken.START.copy_and_replace("room_key", token[1])
 
         time_now = self.clock.time_msec()