mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 14:06:02 -04:00
Handle users leaving rooms
This commit is contained in:
parent
fbfad76c03
commit
76d40f4904
2 changed files with 24 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue