mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04: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
1
changelog.d/6796.bugfix
Normal file
1
changelog.d/6796.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix bug where querying a remote user's device keys that weren't cached resulted in only returning a single device.
|
@ -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…
Reference in New Issue
Block a user