diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2019-10-11 15:19:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-11 15:19:06 -0400 |
commit | 06fc66c81e62b7fdba7bfde7a0efe535890d60a2 (patch) | |
tree | 2540e8bb2bf13eca05d738d0202f5aa5158f63d9 /synapse/handlers/e2e_keys.py | |
parent | Merge pull request #6189 from matrix-org/uhoreg/e2e_backup_optional_version (diff) | |
parent | expand on comment (diff) | |
download | synapse-06fc66c81e62b7fdba7bfde7a0efe535890d60a2.tar.xz |
Merge pull request #6193 from matrix-org/uhoreg/interpret_device_key_in_storage
make storage layer in charge of interpreting the device key data
Diffstat (limited to 'synapse/handlers/e2e_keys.py')
-rw-r--r-- | synapse/handlers/e2e_keys.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py index 056fb97acb..0a84d0e2b0 100644 --- a/synapse/handlers/e2e_keys.py +++ b/synapse/handlers/e2e_keys.py @@ -248,16 +248,10 @@ class E2eKeysHandler(object): results = yield self.store.get_e2e_device_keys(local_query) - # Build the result structure, un-jsonify the results, and add the - # "unsigned" section + # Build the result structure for user_id, device_keys in results.items(): for device_id, device_info in device_keys.items(): - r = dict(device_info["keys"]) - r["unsigned"] = {} - display_name = device_info["device_display_name"] - if display_name is not None: - r["unsigned"]["device_display_name"] = display_name - result_dict[user_id][device_id] = r + result_dict[user_id][device_id] = device_info log_kv(results) return result_dict |