Add published room list edit API

This commit is contained in:
Erik Johnston 2016-03-21 14:03:20 +00:00
parent e4054abfdc
commit 3e7fac0d56
4 changed files with 116 additions and 4 deletions

View file

@ -77,6 +77,14 @@ class RoomStore(SQLBaseStore):
allow_none=True,
)
def set_room_is_public(self, room_id, is_public):
return self._simple_update_one(
table="rooms",
keyvalues={"room_id": room_id},
updatevalues={"is_public": is_public},
desc="set_room_is_public",
)
def get_public_room_ids(self):
return self._simple_select_onecol(
table="rooms",