mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:56:02 -04:00
Ensure pushers are deleted for deactivated accounts (#9285)
This commit is contained in:
parent
1efdcc3e87
commit
1e62d9ee8c
4 changed files with 70 additions and 0 deletions
|
@ -120,6 +120,11 @@ class DeactivateAccountHandler(BaseHandler):
|
|||
|
||||
await self.store.user_set_password_hash(user_id, None)
|
||||
|
||||
# Most of the pushers will have been deleted when we logged out the
|
||||
# associated devices above, but we still need to delete pushers not
|
||||
# associated with devices, e.g. email pushers.
|
||||
await self.store.delete_all_pushers_for_user(user_id)
|
||||
|
||||
# Add the user to a table of users pending deactivation (ie.
|
||||
# removal from all the rooms they're a member of)
|
||||
await self.store.add_user_pending_deactivation(user_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue