diff options
author | Erik Johnston <erik@matrix.org> | 2016-03-21 14:03:20 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-03-21 15:06:07 +0000 |
commit | 3e7fac0d56dca5b389ef7a671c1cd6b0795724c8 (patch) | |
tree | aaec44f0969cbdbe8bee11b262f8500e1ff08e3a /synapse/storage | |
parent | Merge pull request #655 from matrix-org/erikj/edu_yield (diff) | |
download | synapse-3e7fac0d56dca5b389ef7a671c1cd6b0795724c8.tar.xz |
Add published room list edit API
Diffstat (limited to '')
-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", |