summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-06-30 15:41:36 -0400
committerGitHub <noreply@github.com>2020-06-30 15:41:36 -0400
commit71cccf1593bd73a1baef87483117b9be9a99b837 (patch)
tree40dabaa35b30a02a19ee240cfa50e6e6e8ad8a43 /synapse/rest
parentAdd some metrics for inbound and outbound federation processing times (#7755) (diff)
downloadsynapse-71cccf1593bd73a1baef87483117b9be9a99b837.tar.xz
Additional configuration options for auto-join rooms (#7763)
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/admin/rooms.py4
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},
             },