mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 00:54:48 -04:00
Send the m.room.create
stripped event with invites (support MSC1772). (#9966)
MSC1772 specifies the m.room.create event should be sent as part of the invite_state. This was done optionally behind an experimental flag, but is now done by default due to MSC1772 being approved.
This commit is contained in:
parent
652a6b094d
commit
28c6841102
5 changed files with 34 additions and 5 deletions
|
@ -88,10 +88,6 @@ 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", [])
|
||||
|
||||
|
||||
|
@ -109,6 +105,8 @@ _DEFAULT_PREJOIN_STATE_TYPES = [
|
|||
EventTypes.RoomAvatar,
|
||||
EventTypes.RoomEncryption,
|
||||
EventTypes.Name,
|
||||
# Per MSC1772.
|
||||
EventTypes.Create,
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue