diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-03-30 14:03:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 14:03:17 +0100 |
commit | 4dabcf026e3a8f480268451332b6bf3a7e671480 (patch) | |
tree | 474521ab2750119a6400425daa88f67ed0cc30b8 | |
parent | Replace `room_invite_state_types` with `room_prejoin_state` (#9700) (diff) | |
download | synapse-4dabcf026e3a8f480268451332b6bf3a7e671480.tar.xz |
Include m.room.create in invite_room_state for Spaces (#9710)
-rw-r--r-- | changelog.d/9710.feature | 1 | ||||
-rw-r--r-- | synapse/config/api.py | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/changelog.d/9710.feature b/changelog.d/9710.feature new file mode 100644 index 0000000000..fce308cc41 --- /dev/null +++ b/changelog.d/9710.feature @@ -0,0 +1 @@ +Experimental Spaces support: include `m.room.create` in the room state sent with room-invites. 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", []) |