summary refs log tree commit diff
path: root/synapse/handlers/deactivate_account.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-11-28 11:40:33 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-11-28 11:40:33 +0000
commit0b5e2c8093de79c43d857cb4eb3b9ad7eeb87d2c (patch)
tree6419a148f286eee8f8c73ea389628105e11f9ad4 /synapse/handlers/deactivate_account.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parent1.6.1 (diff)
downloadsynapse-0b5e2c8093de79c43d857cb4eb3b9ad7eeb87d2c.tar.xz
Merge branch 'release-v1.6.1' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/handlers/deactivate_account.py')
-rw-r--r--synapse/handlers/deactivate_account.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/deactivate_account.py b/synapse/handlers/deactivate_account.py

index 63267a0a4c..6dedaaff8d 100644 --- a/synapse/handlers/deactivate_account.py +++ b/synapse/handlers/deactivate_account.py
@@ -95,6 +95,9 @@ class DeactivateAccountHandler(BaseHandler): user_id, threepid["medium"], threepid["address"] ) + # Remove all 3PIDs this user has bound to the homeserver + yield self.store.user_delete_threepids(user_id) + # delete any devices belonging to the user, which will also # delete corresponding access tokens. yield self._device_handler.delete_all_devices_for_user(user_id)