mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-27 16:25:15 -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
|
@ -569,6 +569,19 @@ class RegistrationWorkerStore(SQLBaseStore):
|
|||
return self._simple_delete(
|
||||
"user_threepids",
|
||||
keyvalues={"user_id": user_id, "medium": medium, "address": address},
|
||||
desc="user_delete_threepid",
|
||||
)
|
||||
|
||||
def user_delete_threepids(self, user_id: str):
|
||||
"""Delete all threepid this user has bound
|
||||
|
||||
Args:
|
||||
user_id: The user id to delete all threepids of
|
||||
|
||||
"""
|
||||
return self._simple_delete(
|
||||
"user_threepids",
|
||||
keyvalues={"user_id": user_id},
|
||||
desc="user_delete_threepids",
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue