diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-06-30 15:41:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 15:41:36 -0400 |
commit | 71cccf1593bd73a1baef87483117b9be9a99b837 (patch) | |
tree | 40dabaa35b30a02a19ee240cfa50e6e6e8ad8a43 /synapse/rest/admin/rooms.py | |
parent | Add some metrics for inbound and outbound federation processing times (#7755) (diff) | |
download | synapse-71cccf1593bd73a1baef87483117b9be9a99b837.tar.xz |
Additional configuration options for auto-join rooms (#7763)
Diffstat (limited to 'synapse/rest/admin/rooms.py')
-rw-r--r-- | synapse/rest/admin/rooms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/admin/rooms.py b/synapse/rest/admin/rooms.py index 8173baef8f..e07c32118d 100644 --- a/synapse/rest/admin/rooms.py +++ b/synapse/rest/admin/rooms.py @@ -15,7 +15,7 @@ import logging from typing import List, Optional -from synapse.api.constants import EventTypes, JoinRules, Membership +from synapse.api.constants import EventTypes, JoinRules, Membership, RoomCreationPreset from synapse.api.errors import Codes, NotFoundError, SynapseError from synapse.http.servlet import ( RestServlet, @@ -77,7 +77,7 @@ class ShutdownRoomRestServlet(RestServlet): info, stream_id = await self._room_creation_handler.create_room( room_creator_requester, config={ - "preset": "public_chat", + "preset": RoomCreationPreset.PUBLIC_CHAT, "name": room_name, "power_level_content_override": {"users_default": -10}, }, |