Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Only one OTK was returned through federation
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMaul committed Jun 10, 2023
1 parent 12e82fc commit 55b317c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/federation/federation_server.py
Expand Up @@ -1016,7 +1016,9 @@ async def on_claim_client_keys(
for user_id, device_keys in result.items():
for device_id, keys in device_keys.items():
for key_id, key in keys.items():
json_result.setdefault(user_id, {})[device_id] = {key_id: key}
json_result.setdefault(user_id, {}).setdefault(device_id, {})[
key_id
] = key

logger.info(
"Claimed one-time-keys: %s",
Expand Down

0 comments on commit 55b317c

Please sign in to comment.