mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:36:02 -04:00
Add functionality to remove deactivated users from the monthly_active_users table (#10947)
* add test * add function to remove user from monthly active table in deactivate code * add function to remove user from monthly active table * add changelog entry * update changelog number * requested changes * update docstring on new function * fix lint error * Update synapse/storage/databases/main/monthly_active_users.py Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
parent
30f0240401
commit
eda8c88b84
4 changed files with 63 additions and 3 deletions
|
@ -133,6 +133,10 @@ class DeactivateAccountHandler(BaseHandler):
|
|||
# delete from user directory
|
||||
await self.user_directory_handler.handle_local_user_deactivated(user_id)
|
||||
|
||||
# If the user is present in the monthly active users table
|
||||
# remove them
|
||||
await self.store.remove_deactivated_user_from_mau_table(user_id)
|
||||
|
||||
# Mark the user as erased, if they asked for that
|
||||
if erase_data:
|
||||
user = UserID.from_string(user_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue