summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-03-30 14:03:17 +0100
committerGitHub <noreply@github.com>2021-03-30 14:03:17 +0100
commit4dabcf026e3a8f480268451332b6bf3a7e671480 (patch)
tree474521ab2750119a6400425daa88f67ed0cc30b8 /synapse/config
parentReplace `room_invite_state_types` with `room_prejoin_state` (#9700) (diff)
downloadsynapse-4dabcf026e3a8f480268451332b6bf3a7e671480.tar.xz
Include m.room.create in invite_room_state for Spaces (#9710)
Diffstat (limited to '')
-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", [])