diff options
author | Shay <hillerys@element.io> | 2023-05-24 13:23:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 13:23:26 -0700 |
commit | 8839b6c2f8b07d5d122a15e79b1ebdbdd5f3e26b (patch) | |
tree | 3174b7cc3ef73376e94ca4911ca21e777b378997 /synapse/handlers/e2e_keys.py | |
parent | Add type hints to test_descriptors. (#15659) (diff) | |
download | synapse-8839b6c2f8b07d5d122a15e79b1ebdbdd5f3e26b.tar.xz |
Add requesting user id parameter to key claim methods in `TransportLayerClient` (#15663)
Diffstat (limited to 'synapse/handlers/e2e_keys.py')
-rw-r--r-- | synapse/handlers/e2e_keys.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py index 24741b667b..ad075497c8 100644 --- a/synapse/handlers/e2e_keys.py +++ b/synapse/handlers/e2e_keys.py @@ -661,6 +661,7 @@ class E2eKeysHandler: async def claim_one_time_keys( self, query: Dict[str, Dict[str, Dict[str, int]]], + user: UserID, timeout: Optional[int], always_include_fallback_keys: bool, ) -> JsonDict: @@ -703,7 +704,7 @@ class E2eKeysHandler: device_keys = remote_queries[destination] try: remote_result = await self.federation.claim_client_keys( - destination, device_keys, timeout=timeout + user, destination, device_keys, timeout=timeout ) for user_id, keys in remote_result["one_time_keys"].items(): if user_id in device_keys: |