mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:46:02 -04:00
Unbind 3pids when they're deleted too
This commit is contained in:
parent
2c7866d664
commit
b3bff53178
2 changed files with 18 additions and 3 deletions
|
@ -825,6 +825,14 @@ class AuthHandler(BaseHandler):
|
|||
if medium == 'email':
|
||||
address = address.lower()
|
||||
|
||||
identity_handler = self.hs.get_handlers().identity_handler
|
||||
identity_handler.unbind_threepid(user_id,
|
||||
{
|
||||
'medium': medium,
|
||||
'address': address,
|
||||
},
|
||||
)
|
||||
|
||||
ret = yield self.store.user_delete_threepid(
|
||||
user_id, medium, address,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue