Update comments
2 files changed, 5 insertions, 4 deletions
diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py
index 69be113117..57c8934752 100644
--- a/synapse/handlers/sliding_sync.py
+++ b/synapse/handlers/sliding_sync.py
@@ -2207,8 +2207,8 @@ class SlidingSyncConnectionStore:
user_id = sync_config.user.to_string()
- # If this is missing, only one sliding sync connection is allowed per
- # given conn_id.
+ # Only one sliding sync connection is allowed per given conn_id (empty
+ # or not).
conn_id = sync_config.conn_id or ""
if sync_config.requester.device_id:
diff --git a/synapse/types/rest/client/__init__.py b/synapse/types/rest/client/__init__.py
index 511e6e2d9f..4fb30d05b4 100644
--- a/synapse/types/rest/client/__init__.py
+++ b/synapse/types/rest/client/__init__.py
@@ -120,8 +120,9 @@ class SlidingSyncBody(RequestBodyModel):
Sliding Sync API request body.
Attributes:
- conn_id: An optional string to identify this connection to the server. If this
- is missing, only one sliding sync connection is allowed per given conn_id.
+ conn_id: An optional string to identify this connection to the server.
+ Only one sliding sync connection is allowed per given conn_id (empty
+ or not).
lists: Sliding window API. A map of list key to list information
(:class:`SlidingSyncList`). Max lists: 100. The list keys should be
arbitrary strings which the client is using to refer to the list. Keep this
|