diff options
author | Matthew Hodgson <matthew@matrix.org> | 2016-03-29 01:20:25 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2016-03-29 01:20:25 +0100 |
commit | e0c2490a145550310edb3ad0a414aa1840ef3ce4 (patch) | |
tree | 3d9ba7834e859171397ac7136ccb82123b4cd8ce /synapse/storage/room.py | |
parent | Merge branch 'develop' into matthew/preview_urls (diff) | |
parent | typo (diff) | |
download | synapse-e0c2490a145550310edb3ad0a414aa1840ef3ce4.tar.xz |
Merge branch 'develop' into matthew/preview_urls
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", |