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

Commit

Permalink
Include m.room.create in invite_room_state for Spaces (#9710)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Mar 30, 2021
1 parent f02663c commit 4dabcf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/9710.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Experimental Spaces support: include `m.room.create` in the room state sent with room-invites.
4 changes: 4 additions & 0 deletions synapse/config/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ def _get_prejoin_state_types(self, config: JsonDict) -> Iterable[str]:
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", [])


Expand Down

0 comments on commit 4dabcf0

Please sign in to comment.