mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-01 19:24:45 -05:00
Fix bug when querying remote user keys that require a resync. (#6796)
We ended up only returning a single device, rather than all of them.
This commit is contained in:
parent
fcfb591b31
commit
2cad8baa70
2 changed files with 3 additions and 1 deletions
|
|
@ -208,8 +208,9 @@ class E2eKeysHandler(object):
|
|||
)
|
||||
|
||||
user_devices = user_devices["devices"]
|
||||
user_results = results.setdefault(user_id, {})
|
||||
for device in user_devices:
|
||||
results[user_id] = {device["device_id"]: device["keys"]}
|
||||
user_results[device["device_id"]] = device["keys"]
|
||||
user_ids_updated.append(user_id)
|
||||
except Exception as e:
|
||||
failures[destination] = _exception_to_failure(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue