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

Commit

Permalink
Send the m.room.create stripped event with invites (support MSC1772).
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed May 11, 2021
1 parent 2b2985b commit 6d1519e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion changelog.d/9915.feature
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Support stable identifiers from [MSC1772](https://github.com/matrix-org/matrix-doc/pull/1772).
Support [MSC1772](https://github.com/matrix-org/matrix-doc/pull/1772).
1 change: 1 addition & 0 deletions changelog.d/9966.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support [MSC1772](https://github.com/matrix-org/matrix-doc/pull/1772).
6 changes: 2 additions & 4 deletions synapse/config/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ 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 All @@ -109,6 +105,8 @@ def _get_prejoin_state_types(self, config: JsonDict) -> Iterable[str]:
EventTypes.RoomAvatar,
EventTypes.RoomEncryption,
EventTypes.Name,
# Per MSC1772.
EventTypes.Create,
]


Expand Down

0 comments on commit 6d1519e

Please sign in to comment.