Handle users leaving rooms

This commit is contained in:
Erik Johnston 2017-01-26 16:39:33 +00:00
parent fbfad76c03
commit 76d40f4904
2 changed files with 24 additions and 1 deletions

View file

@ -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.