summary refs log tree commit diff
path: root/synapse/config/registration.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-09-28 01:42:53 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-09-28 01:42:53 +0100
commit07340cdacad901a55abd0811a1fca86061b752bd (patch)
tree96616162925ea4fa8558dc34727636856b773353 /synapse/config/registration.py
parentMerge pull request #3794 from matrix-org/erikj/faster_typing (diff)
downloadsynapse-07340cdacad901a55abd0811a1fca86061b752bd.tar.xz
untested stab at autocreating autojoin rooms
Diffstat (limited to 'synapse/config/registration.py')
-rw-r--r--synapse/config/registration.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/config/registration.py b/synapse/config/registration.py
index 0fb964eb67..686c7fa9f7 100644
--- a/synapse/config/registration.py
+++ b/synapse/config/registration.py
@@ -44,6 +44,7 @@ class RegistrationConfig(Config):
         )
 
         self.auto_join_rooms = config.get("auto_join_rooms", [])
+        self.autocreate_auto_join_rooms = config.get("autocreate_auto_join_rooms", true)
 
     def default_config(self, **kwargs):
         registration_shared_secret = random_string_with_symbols(50)
@@ -98,6 +99,9 @@ class RegistrationConfig(Config):
         # to these rooms
         #auto_join_rooms:
         #    - "#example:example.com"
+
+        # Have first user on server autocreate autojoin rooms
+        autocreate_auto_join_rooms: true
         """ % locals()
 
     def add_arguments(self, parser):