diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-06-14 13:18:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-14 13:18:24 +0100 |
commit | d0530382eeff053547304532167c0e4654af172c (patch) | |
tree | 016b1211405a9c68292bb9ce0470183ab6cff825 /synapse/handlers | |
parent | Merge pull request #5458 from matrix-org/hawkowl/fix-prometheus (diff) | |
download | synapse-d0530382eeff053547304532167c0e4654af172c.tar.xz |
Track deactivated accounts in the database (#5378)
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/deactivate_account.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/deactivate_account.py b/synapse/handlers/deactivate_account.py index 6a91f7698e..b29089d82c 100644 --- a/synapse/handlers/deactivate_account.py +++ b/synapse/handlers/deactivate_account.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # Copyright 2017, 2018 New Vector Ltd +# Copyright 2019 The Matrix.org Foundation C.I.C. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -114,6 +115,9 @@ class DeactivateAccountHandler(BaseHandler): # parts users from rooms (if it isn't already running) self._start_user_parting() + # Mark the user as deactivated. + yield self.store.set_user_deactivated_status(user_id, True) + defer.returnValue(identity_server_supports_unbinding) def _start_user_parting(self): |