summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-03-03 10:59:10 +0000
committerErik Johnston <erik@matrix.org>2021-03-03 10:59:10 +0000
commit81c7b0515d6cefe3c3717b57c96de0b9a1ca4cf7 (patch)
tree7a6af0cfaecf639dc8233435114cd2c60045bd37 /synapse/handlers/sync.py
parentMerge remote-tracking branch 'origin/develop' into matrix-org-hotfixes (diff)
parentPrevent presence background jobs from running when presence is disabled (#9530) (diff)
downloadsynapse-81c7b0515d6cefe3c3717b57c96de0b9a1ca4cf7.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r--synapse/handlers/sync.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py

index 16b68d630a..6c8e361402 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py
@@ -278,9 +278,8 @@ class SyncHandler: user_id = sync_config.user.to_string() await self.auth.check_auth_blocking(requester=requester) - res = await self.response_cache.wrap_conditional( + res = await self.response_cache.wrap( sync_config.request_key, - lambda result: since_token != result.next_batch, self._wait_for_sync_for_user, sync_config, since_token,