summary refs log tree commit diff
path: root/synapse/config/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/config/api.py')
-rw-r--r--synapse/config/api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/config/api.py b/synapse/config/api.py
index 91387a7f0e..55c038c0c4 100644
--- a/synapse/config/api.py
+++ b/synapse/config/api.py
@@ -88,6 +88,10 @@ class ApiConfig(Config):
         if not room_prejoin_state_config.get("disable_default_event_types"):
             yield from _DEFAULT_PREJOIN_STATE_TYPES
 
+            if self.spaces_enabled:
+                # MSC1772 suggests adding m.room.create to the prejoin state
+                yield EventTypes.Create
+
         yield from room_prejoin_state_config.get("additional_event_types", [])