mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
Include m.room.create in invite_room_state for Spaces (#9710)
This commit is contained in:
parent
f02663c4dd
commit
4dabcf026e
2 changed files with 5 additions and 0 deletions
1
changelog.d/9710.feature
Normal file
1
changelog.d/9710.feature
Normal file
|
@ -0,0 +1 @@
|
|||
Experimental Spaces support: include `m.room.create` in the room state sent with room-invites.
|
|
@ -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", [])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue