summary refs log tree commit diff
path: root/synapse/config/api.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-05-11 10:58:58 -0400
committerGitHub <noreply@github.com>2021-05-11 10:58:58 -0400
commit28c68411028e15858819f2a5896313ce0e71c25b (patch)
tree07c766f7d66b67244ec85d393d86cd564ff7d942 /synapse/config/api.py
parentMerge branch 'master' into develop (diff)
downloadsynapse-28c68411028e15858819f2a5896313ce0e71c25b.tar.xz
Send the `m.room.create` stripped event with invites (support MSC1772). (#9966)
MSC1772 specifies the m.room.create event should be sent as part
of the invite_state. This was done optionally behind an experimental
flag, but is now done by default due to MSC1772 being approved.
Diffstat (limited to '')
-rw-r--r--synapse/config/api.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/config/api.py b/synapse/config/api.py
index 55c038c0c4..b18044f982 100644
--- a/synapse/config/api.py
+++ b/synapse/config/api.py
@@ -88,10 +88,6 @@ 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", [])
 
 
@@ -109,6 +105,8 @@ _DEFAULT_PREJOIN_STATE_TYPES = [
     EventTypes.RoomAvatar,
     EventTypes.RoomEncryption,
     EventTypes.Name,
+    # Per MSC1772.
+    EventTypes.Create,
 ]