summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-06-14 13:18:24 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-06-14 13:45:36 +0100
commit57bd5cfc9a80cbde7b085a06c44b213ff92d162d (patch)
tree2c9d9215b0bdb5d959b696c30efd2f93c6cdd12e /synapse/handlers
parentMerge pull request #5420 from matrix-org/babolivier/userdir_hide_users (diff)
downloadsynapse-57bd5cfc9a80cbde7b085a06c44b213ff92d162d.tar.xz
Track deactivated accounts in the database (#5378)
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/deactivate_account.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/deactivate_account.py b/synapse/handlers/deactivate_account.py

index 84e3a00615..bac2836c34 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. @@ -118,6 +119,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):