diff options
author | Till Faelligen <2353100+S7evinK@users.noreply.github.com> | 2024-04-16 17:01:48 +0200 |
---|---|---|
committer | Till Faelligen <2353100+S7evinK@users.noreply.github.com> | 2024-04-16 17:01:48 +0200 |
commit | 67d516d2a4f2260fe36d0f735a202e372f87eabb (patch) | |
tree | b07a8af83b5d0d5b077ae42f45e5504170d827b0 | |
parent | Ensure that uploaded keys are dicts (diff) | |
download | synapse-67d516d2a4f2260fe36d0f735a202e372f87eabb.tar.xz |
Run the linters again after changing the file
-rw-r--r-- | synapse/handlers/e2e_keys.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py index d0d8484272..60f8d11ed0 100644 --- a/synapse/handlers/e2e_keys.py +++ b/synapse/handlers/e2e_keys.py @@ -798,7 +798,10 @@ class E2eKeysHandler: ) # Validate that user_id and device_id match the requesting user - if device_keys["user_id"] == user_id and device_keys["device_id"] == device_id: + if ( + device_keys["user_id"] == user_id + and device_keys["device_id"] == device_id + ): # TODO: Sign the JSON with the server key changed = await self.store.set_e2e_device_keys( user_id, device_id, time_now, device_keys @@ -807,8 +810,12 @@ class E2eKeysHandler: # Only notify about device updates *if* the keys actually changed await self.device_handler.notify_device_update(user_id, [device_id]) else: - log_kv({"message": "Not updating device_keys for user, user_id or device_id mismatch", - "user_id": user_id}) + log_kv( + { + "message": "Not updating device_keys for user, user_id or device_id mismatch", + "user_id": user_id, + } + ) elif device_keys: log_kv({"message": "Did not update device_keys", "reason": "not a dict"}) else: |