summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-09-11 11:59:24 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-09-11 11:59:24 +0100
commitc81dba4a5d9d7653e924b984ca9a9136b85e85a8 (patch)
tree264dc8f36250760a814cae76f9a52d6c926abd1d
parentcorrectly disable LL for incr sync (diff)
downloadsynapse-c81dba4a5d9d7653e924b984ca9a9136b85e85a8.tar.xz
improve comment
-rw-r--r--synapse/handlers/sync.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 93d37a4764..cd219504d8 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -747,7 +747,12 @@ class SyncHandler(object):
                 # more state in the server than if we were LLing.
                 #
                 # We still have to filter timeline_start to LL entries (above) in order
-                # for _calculate_state's LL logic to work.
+                # for _calculate_state's LL logic to work, as we have to include LL
+                # members for timeline senders in case they weren't loaded in the initial
+                # sync.  We do this by (counterintuitively) by filtering timeline_start
+                # members to just be ones which were timeline senders, which then ensures
+                # all of the rest get included in the state block (if we need to know about
+                # them).
                 types = None
                 filtered_types = None