summary refs log tree commit diff
path: root/synapse/storage/room.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-03-21 14:03:20 +0000
committerErik Johnston <erik@matrix.org>2016-03-21 15:06:07 +0000
commit3e7fac0d56dca5b389ef7a671c1cd6b0795724c8 (patch)
treeaaec44f0969cbdbe8bee11b262f8500e1ff08e3a /synapse/storage/room.py
parentMerge pull request #655 from matrix-org/erikj/edu_yield (diff)
downloadsynapse-3e7fac0d56dca5b389ef7a671c1cd6b0795724c8.tar.xz
Add published room list edit API
Diffstat (limited to '')
-rw-r--r--synapse/storage/room.py8
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",