summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-05-14 11:25:30 +0100
committerMark Haines <mark.haines@matrix.org>2015-05-14 11:25:30 +0100
commit3edd2d5c93ccbec46f101e65c6c7874a90bf0018 (patch)
tree0100c65cc9eae79cb35cce95d7131ca0df6e4a48 /synapse/handlers/sync.py
parentFix metric counter (diff)
downloadsynapse-3edd2d5c93ccbec46f101e65c6c7874a90bf0018.tar.xz
Fix v2 sync, update the last_notified_ms only if there was an active listener
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r--synapse/handlers/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 35a62fda47..bd8c603681 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -92,7 +92,7 @@ class SyncHandler(BaseHandler):
             result = yield self.current_sync_for_user(sync_config, since_token)
             defer.returnValue(result)
         else:
-            def current_sync_callback():
+            def current_sync_callback(before_token, after_token):
                 return self.current_sync_for_user(sync_config, since_token)
 
             rm_handler = self.hs.get_handlers().room_member_handler