summary refs log tree commit diff
path: root/synapse/handlers/deactivate_account.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-11-28 10:40:42 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-11-28 11:07:45 +0000
commit2030193e5523810c4fd6158f97b7a223cee4cb72 (patch)
treee5c9c44c55d1dd81882d70caf1ed90fbc52062ee /synapse/handlers/deactivate_account.py
parentFix startup error when http proxy is defined. (#6421) (diff)
downloadsynapse-2030193e5523810c4fd6158f97b7a223cee4cb72.tar.xz
Remove local threepids on account deactivation (#6426)
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)