summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-02-01 16:52:27 +0000
committerErik Johnston <erik@matrix.org>2016-02-01 16:52:27 +0000
commit854ca32f10f6e1c8041160d4866470098c7f6fc1 (patch)
treea7f4a1c450b48ea2427739be4d538aea91e688f1 /synapse/handlers
parentMove state calculations from rest to handler (diff)
downloadsynapse-854ca32f10f6e1c8041160d4866470098c7f6fc1.tar.xz
Comments
Diffstat (limited to '')
-rw-r--r--synapse/handlers/sync.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 3109e30414..8d8d10da33 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -807,11 +807,12 @@ class SyncHandler(BaseHandler):
         and the previous sync.
 
         :param str room_id
-        :param TimelineBatch batch
+        :param TimelineBatch batch: The timeline batch for the room that will
+            be sent to the user.
         :param sync_config
-        :param str since_token
-        :param str now_token
-        :param bool full_state
+        :param str since_token: Token of the end of the previous batch. May be None.
+        :param str now_token: Token of the end of the current batch.
+        :param bool full_state: Whether to force returning the full state.
 
         :returns A new event dictionary
         """
@@ -919,7 +920,7 @@ def _calculate_state(timeline_contains, timeline_start, previous):
         timeline_contains (dict): state in the timeline
         timeline_start (dict): state at the start of the timeline
         previous (dict): state at the end of the previous sync (or empty dict
-            if there is an initial sync)
+            if this is an initial sync)
 
     Returns:
         dict