summary refs log tree commit diff
path: root/synapse/handlers/initial_sync.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-05-09 15:43:00 +0100
committerErik Johnston <erik@matrix.org>2018-05-09 15:43:00 +0100
commitfcf55f225541bcffa4bcb32213e0fde74f7b5827 (patch)
tree8d4ebe6c76aa90ec25bd018f5f43120d8e51927a /synapse/handlers/initial_sync.py
parentFix up comment (diff)
downloadsynapse-fcf55f225541bcffa4bcb32213e0fde74f7b5827.tar.xz
Fix returned token is no longer a tuple
Diffstat (limited to 'synapse/handlers/initial_sync.py')
-rw-r--r--synapse/handlers/initial_sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/initial_sync.py b/synapse/handlers/initial_sync.py
index 5a9aa0c16d..71af86fe21 100644
--- a/synapse/handlers/initial_sync.py
+++ b/synapse/handlers/initial_sync.py
@@ -408,7 +408,7 @@ class InitialSyncHandler(BaseHandler):
             self.store, user_id, messages, is_peeking=is_peeking,
         )
 
-        start_token = now_token.copy_and_replace("room_key", token[0])
+        start_token = now_token.copy_and_replace("room_key", token)
         end_token = now_token
 
         time_now = self.clock.time_msec()