diff options
author | Erik Johnston <erik@matrix.org> | 2017-01-26 16:39:33 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-01-26 16:39:33 +0000 |
commit | 76d40f490411ce1a0a208acb4242678b0cb4afb3 (patch) | |
tree | e4c078d682918f0361aebce2f098348dbcdf8129 /synapse/storage | |
parent | Add comments (diff) | |
download | synapse-76d40f490411ce1a0a208acb4242678b0cb4afb3.tar.xz |
Handle users leaving rooms
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/devices.py | 8 |
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. |