Add /account/3pid/delete endpoint

Also fix a typo in a comment
This commit is contained in:
David Baker 2016-12-20 18:27:30 +00:00
parent b7f4f902fa
commit 0c88ab1844
3 changed files with 57 additions and 1 deletions

View file

@ -413,6 +413,17 @@ class RegistrationStore(background_updates.BackgroundUpdateStore):
desc="user_delete_threepids",
)
def user_delete_threepid(self, user_id, medium, address):
return self._simple_delete(
"user_threepids",
keyvalues={
"user_id": user_id,
"medium": medium,
"address": address,
},
desc="user_delete_threepids",
)
@defer.inlineCallbacks
def count_all_users(self):
"""Counts all users registered on the homeserver."""