summary refs log tree commit diff
path: root/synapse/config/api.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2021-05-12 12:57:55 +0100
committerRichard van der Hoff <richard@matrix.org>2021-05-12 12:57:55 +0100
commitb0b8110acd7275285e3fb5dc68de5eb684a0cabe (patch)
treeb9b821988bdcb072fc90750fcec9ec2e3d46c9db /synapse/config/api.py
parentMerge branch 'release-v1.33.2' into matrix-org-hotfixes (diff)
parentTests for to-device messages (#9965) (diff)
downloadsynapse-b0b8110acd7275285e3fb5dc68de5eb684a0cabe.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/config/api.py')
-rw-r--r--synapse/config/api.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/config/api.py b/synapse/config/api.py

index 55c038c0c4..b18044f982 100644 --- a/synapse/config/api.py +++ b/synapse/config/api.py
@@ -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, ]