mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:44:52 -04:00
Handle the server leaving a public room
This commit is contained in:
parent
63fda37e20
commit
350622a107
4 changed files with 46 additions and 3 deletions
|
@ -124,6 +124,17 @@ class UserDirectoryStore(SQLBaseStore):
|
|||
)
|
||||
self.get_user_in_directory.invalidate((user_id,))
|
||||
|
||||
def get_users_in_dir_due_to_room(self, room_id):
|
||||
"""Get all user_ids that are in the room directory becuase they're
|
||||
in the given room_id
|
||||
"""
|
||||
return self._simple_select_onecol(
|
||||
table="user_directory",
|
||||
keyvalues={"room_id": room_id},
|
||||
retcol="user_id",
|
||||
desc="get_users_in_dir_due_to_room",
|
||||
)
|
||||
|
||||
def get_all_rooms(self):
|
||||
"""Get all room_ids we've ever known about
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue