mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-05 04:48:50 -04:00
Add support for extracting matching room_ids and room_aliases for a given AS.
This commit is contained in:
parent
2d20466f9a
commit
2b8ca84296
3 changed files with 82 additions and 2 deletions
|
@ -71,6 +71,17 @@ class RoomStore(SQLBaseStore):
|
|||
RoomsTable.decode_single_result, query, room_id,
|
||||
)
|
||||
|
||||
def get_all_rooms(self):
|
||||
"""Retrieve all the rooms.
|
||||
|
||||
Returns:
|
||||
A list of namedtuples containing the room information.
|
||||
"""
|
||||
query = RoomsTable.select_statement()
|
||||
return self._execute(
|
||||
RoomsTable.decode_results, query,
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def get_rooms(self, is_public):
|
||||
"""Retrieve a list of all public rooms.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue