Skip to content
Snippets Groups Projects
Unverified Commit 4dabcf02 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Include m.room.create in invite_room_state for Spaces (#9710)

parent f02663c4
No related branches found
No related tags found
No related merge requests found
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", [])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment