diff options
author | Erik Johnston <erik@matrix.org> | 2016-03-22 11:57:39 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-03-22 11:57:39 +0000 |
commit | d6ac7525380076cbae33b631d58725758f97e459 (patch) | |
tree | 722d4483ab0e70a3242f2d53a6c4f9ee9e728a34 /synapse/storage/room.py | |
parent | Merge pull request #658 from matrix-org/markjh/cleanup (diff) | |
parent | Doc string (diff) | |
download | synapse-d6ac7525380076cbae33b631d58725758f97e459.tar.xz |
Merge pull request #657 from matrix-org/erikj/roomlist
Add published room list edit API
Diffstat (limited to 'synapse/storage/room.py')
-rw-r--r-- | synapse/storage/room.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/storage/room.py b/synapse/storage/room.py index 46ab38a313..9be977f387 100644 --- a/synapse/storage/room.py +++ b/synapse/storage/room.py @@ -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", |