summary refs log tree commit diff
path: root/synapse/storage/devices.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-01-26 16:39:33 +0000
committerErik Johnston <erik@matrix.org>2017-01-26 16:39:33 +0000
commit76d40f490411ce1a0a208acb4242678b0cb4afb3 (patch)
treee4c078d682918f0361aebce2f098348dbcdf8129 /synapse/storage/devices.py
parentAdd comments (diff)
downloadsynapse-76d40f490411ce1a0a208acb4242678b0cb4afb3.tar.xz
Handle users leaving rooms
Diffstat (limited to '')
-rw-r--r--synapse/storage/devices.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/storage/devices.py b/synapse/storage/devices.py
index cf38dbaa3c..1c48c3af99 100644
--- a/synapse/storage/devices.py
+++ b/synapse/storage/devices.py
@@ -150,6 +150,14 @@ class DeviceStore(SQLBaseStore):
             allow_none=True,
         )
 
+    def mark_remote_user_device_list_as_unsubscribed(self, user_id):
+        return self._simple_delete(
+            table="device_lists_remote_extremeties",
+            keyvalues={
+                "user_id": user_id,
+            },
+        )
+
     def update_remote_device_list_cache_entry(self, user_id, device_id, content,
                                               stream_id):
         """Updates a single user's device in the cache.