diff options
author | Erik Johnston <erikj@jki.re> | 2016-06-30 15:57:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-30 15:57:29 +0100 |
commit | ab71589c0beb392333ec41c887d08a6c577121dd (patch) | |
tree | 199bef20aca0ca594d234ff61c16ab44e46be91f /synapse/storage/registration.py | |
parent | Merge pull request #902 from matrix-org/erikj/expire_media (diff) | |
parent | Feature: Add deactivate account admin API (diff) | |
download | synapse-ab71589c0beb392333ec41c887d08a6c577121dd.tar.xz |
Merge pull request #903 from matrix-org/erikj/deactivate_user
Feature: Add deactivate account admin API
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r-- | synapse/storage/registration.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index 3de9e0f709..5c75dbab51 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -384,6 +384,15 @@ class RegistrationStore(SQLBaseStore): defer.returnValue(ret['user_id']) defer.returnValue(None) + def user_delete_threepids(self, user_id): + return self._simple_delete( + "user_threepids", + keyvalues={ + "user_id": user_id, + }, + desc="user_delete_threepids", + ) + @defer.inlineCallbacks def count_all_users(self): """Counts all users registered on the homeserver.""" |