mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:46:01 -04:00
Remove local threepids on account deactivation (#6426)
This commit is contained in:
parent
c48ea98007
commit
a9c44d4008
3 changed files with 17 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue