summary refs log tree commit diff
path: root/synapse/storage/registration.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-12-20 18:27:30 +0000
committerDavid Baker <dave@matrix.org>2016-12-20 18:27:30 +0000
commit0c88ab184422739a20289ca213861986f70ae6e6 (patch)
tree6988c9b1b4f49e163df7fbfa21eadb87d97af8a3 /synapse/storage/registration.py
parentMerge pull request #1712 from kyrias/fix-bind-address-none (diff)
downloadsynapse-0c88ab184422739a20289ca213861986f70ae6e6.tar.xz
Add /account/3pid/delete endpoint
Also fix a typo in a comment
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r--synapse/storage/registration.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 983a8ec52b..26be6060c3 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -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."""