diff options
author | Richard van der Hoff <richard@matrix.org> | 2024-07-11 16:03:35 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2024-07-11 16:03:35 +0100 |
commit | 6d4e10b68589d5fb74b7cb2a58cbfa91508b3c58 (patch) | |
tree | 83d07f5741cb4b57fe4fff76c016a133897e2b74 | |
parent | Enable cross-signing key upload without UIA (#17284) (diff) | |
download | synapse-rav/device_keys_client_data.tar.xz |
Allow clients to pass `unsigned` data in `/keys/upload` github/rav/device_keys_client_data rav/device_keys_client_data
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/databases/main/end_to_end_keys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/end_to_end_keys.py b/synapse/storage/databases/main/end_to_end_keys.py index 38d8785faa..d36df75bb8 100644 --- a/synapse/storage/databases/main/end_to_end_keys.py +++ b/synapse/storage/databases/main/end_to_end_keys.py @@ -240,7 +240,7 @@ class EndToEndKeyWorkerStore(EndToEndKeyBackgroundStore, CacheInvalidationWorker if r is None: continue - r["unsigned"] = {} + r.setdefault("unsigned", {}) if include_displaynames: # Include the device's display name in the "unsigned" dictionary display_name = device_info.display_name |