diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2019-10-10 20:31:30 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2019-10-10 20:31:30 -0400 |
commit | 7a0dce92594d05179234095899c3d09a8a744cbb (patch) | |
tree | 12f21cebf519bcf25d87460daf26ef09d7f9c37f /synapse/handlers/e2e_keys.py | |
parent | add changelog (diff) | |
download | synapse-7a0dce92594d05179234095899c3d09a8a744cbb.tar.xz |
make sure we actually return something
Diffstat (limited to 'synapse/handlers/e2e_keys.py')
-rw-r--r-- | synapse/handlers/e2e_keys.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py index 6708d983ac..0a84d0e2b0 100644 --- a/synapse/handlers/e2e_keys.py +++ b/synapse/handlers/e2e_keys.py @@ -248,6 +248,11 @@ class E2eKeysHandler(object): results = yield self.store.get_e2e_device_keys(local_query) + # Build the result structure + for user_id, device_keys in results.items(): + for device_id, device_info in device_keys.items(): + result_dict[user_id][device_id] = device_info + log_kv(results) return result_dict |