Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit fb70973

Browse files
committed
Include m.room.create in invite_room_state for Spaces
1 parent f02663c commit fb70973

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

changelog.d/9710.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Experimental Spaces support: include `m.room.create` in the room state sent with room-invites.

synapse/config/api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ def _get_prejoin_state_types(self, config: JsonDict) -> Iterable[str]:
8888
if not room_prejoin_state_config.get("disable_default_event_types"):
8989
yield from _DEFAULT_PREJOIN_STATE_TYPES
9090

91+
if self.spaces_enabled:
92+
# MSC1772 suggests adding m.room.create to the prejoin state
93+
yield EventTypes.Create
94+
9195
yield from room_prejoin_state_config.get("additional_event_types", [])
9296

9397

0 commit comments

Comments
 (0)