We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a26806 commit d201b45Copy full SHA for d201b45
1 file changed
synapse/handlers/sliding_sync/__init__.py
@@ -196,6 +196,12 @@ async def current_sync_callback(
196
sync_config.user.to_string(),
197
timeout_ms,
198
current_sync_callback,
199
+ # We *wait* from `now_token` as we have already computed the sync
200
+ # response up to `now_token` above, so we want to wait for something
201
+ # new to arrive after `now_token`.
202
+ #
203
+ # We still generate the sync response using `from_token` in the
204
+ # callback above though.
205
from_token=now_token,
206
)
207
did_wait = True
0 commit comments