summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorShay <hillerys@element.io>2023-04-04 13:16:08 -0700
committerGitHub <noreply@github.com>2023-04-04 20:16:08 +0000
commit6b23d74ad160d96e06bcc5b62acad56ade06bf6e (patch)
tree5f16b2a420b319d2db668a1582b07c9b8ee3cc10 /synapse/handlers
parentUpdate changelog (diff)
downloadsynapse-6b23d74ad160d96e06bcc5b62acad56ade06bf6e.tar.xz
Delete server-side backup keys when deactivating an account. (#15181)
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/deactivate_account.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/deactivate_account.py b/synapse/handlers/deactivate_account.py
index d31263c717..bd5867491b 100644
--- a/synapse/handlers/deactivate_account.py
+++ b/synapse/handlers/deactivate_account.py
@@ -176,6 +176,9 @@ class DeactivateAccountHandler:
         # Remove account data (including ignored users and push rules).
         await self.store.purge_account_data_for_user(user_id)
 
+        # Delete any server-side backup keys
+        await self.store.bulk_delete_backup_keys_and_versions_for_user(user_id)
+
         # Let modules know the user has been deactivated.
         await self._third_party_rules.on_user_deactivation_status_changed(
             user_id,