summary refs log tree commit diff
path: root/synapse/handlers/device.py
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2016-07-27 18:16:57 +0100
committerGitHub <noreply@github.com>2016-07-27 18:16:57 +0100
commit40e539683c65119400fa6487d7b8fd658b99eeae (patch)
treeea1dec0d3e43fdf90a2124bd6025a70710f629c6 /synapse/handlers/device.py
parentMerge pull request #957 from matrix-org/markjh/verify (diff)
parentkey upload tweaks (diff)
downloadsynapse-40e539683c65119400fa6487d7b8fd658b99eeae.tar.xz
Merge pull request #956 from matrix-org/rav/check_device_id_on_key_upload
Make the device id on e2e key upload optional
Diffstat (limited to 'synapse/handlers/device.py')
-rw-r--r--synapse/handlers/device.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py
index eaead50800..f4bf159bb5 100644
--- a/synapse/handlers/device.py
+++ b/synapse/handlers/device.py
@@ -143,6 +143,10 @@ class DeviceHandler(BaseHandler):
             delete_refresh_tokens=True,
         )
 
+        yield self.store.delete_e2e_keys_by_device(
+            user_id=user_id, device_id=device_id
+        )
+
     @defer.inlineCallbacks
     def update_device(self, user_id, device_id, content):
         """ Update the given device