summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-07-14 10:20:31 +0100
committerErik Johnston <erik@matrix.org>2015-07-14 10:20:31 +0100
commitb49a30a972470914531c89cd481252e414b22d0e (patch)
treec99de298e0ebdd87abb2c723cf4f382b36348eac /synapse/handlers
parentImplement presets at room creation (diff)
downloadsynapse-b49a30a972470914531c89cd481252e414b22d0e.tar.xz
Capitalize contants
Diffstat (limited to '')
-rw-r--r--synapse/handlers/room.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index c654395437..11f531dc75 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -36,12 +36,12 @@ logger = logging.getLogger(__name__)
 class RoomCreationHandler(BaseHandler):
 
     PRESETS_DICT = {
-        RoomCreationPreset.PrivateChat: {
+        RoomCreationPreset.PRIVATE_CHAT: {
             "join_rules": JoinRules.INVITE,
             "history_visibility": "invited",
             "everyone_ops": False,
         },
-        RoomCreationPreset.PublicChat: {
+        RoomCreationPreset.PUBLIC_CHAT: {
             "join_rules": JoinRules.PUBLIC,
             "history_visibility": "shared",
             "everyone_ops": False,
@@ -138,9 +138,9 @@ class RoomCreationHandler(BaseHandler):
 
         preset_config = config.get(
             "preset",
-            RoomCreationPreset.PublicChat
+            RoomCreationPreset.PUBLIC_CHAT
             if is_public
-            else RoomCreationPreset.PrivateChat
+            else RoomCreationPreset.PRIVATE_CHAT
         )
 
         user = UserID.from_string(user_id)