summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-07-28 10:36:55 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-07-28 10:36:55 +0100
commit1d3a9fe6e5cec793e7e259cf7e469fd4c8d79041 (patch)
tree7362257c5ff8e37b52334d06ab55d85fabc2dce8 /synapse/handlers
parentMerge remote-tracking branch 'origin/release-v1.38' into matrix-org-hotfixes (diff)
parentFix import of the default SAML mapping provider. (#10477) (diff)
downloadsynapse-1d3a9fe6e5cec793e7e259cf7e469fd4c8d79041.tar.xz
Merge branch 'release-v1.39' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/_base.py2
-rw-r--r--synapse/handlers/sync.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py

index 525f3d39b1..6a05a65305 100644 --- a/synapse/handlers/_base.py +++ b/synapse/handlers/_base.py
@@ -15,8 +15,6 @@ import logging from typing import TYPE_CHECKING, Optional -import synapse.state -import synapse.storage import synapse.types from synapse.api.constants import EventTypes, Membership from synapse.api.ratelimiting import Ratelimiter diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 8a1b79bd95..4826260578 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py
@@ -1094,6 +1094,10 @@ class SyncHandler: one_time_key_counts: JsonDict = {} unused_fallback_key_types: List[str] = [] if device_id: + # TODO: We should have a way to let clients differentiate between the states of: + # * no change in OTK count since the provided since token + # * the server has zero OTKs left for this device + # Spec issue: https://github.com/matrix-org/matrix-doc/issues/3298 one_time_key_counts = await self.store.count_e2e_one_time_keys( user_id, device_id )