Add support for extracting matching room_ids and room_aliases for a given AS.

This commit is contained in:
Kegan Dougal 2015-02-25 17:15:25 +00:00
parent 2d20466f9a
commit 2b8ca84296
3 changed files with 82 additions and 2 deletions

View file

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