diff options
author | Travis Ralston <travisr@matrix.org> | 2022-11-28 17:22:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 17:22:34 -0700 |
commit | dd518281208d2fc446f9995ad78949e807d8f5b8 (patch) | |
tree | 1f3706bbc03ca0b623a87f3d7851b161a50c66b9 /synapse/config/experimental.py | |
parent | Initial support for MSC3931: Room version push rule feature flags (#14520) (diff) | |
download | synapse-dd518281208d2fc446f9995ad78949e807d8f5b8.tar.xz |
Create MSC1767 (extensible events) room version; Implement MSC3932 (#14521)
* Add MSC1767's dedicated room version, based on v10 * Only enable MSC1767 room version if the config flag is on Using a similar technique to knocking: https://github.com/matrix-org/synapse/pull/6739/files#diff-3af529eedb0e00279bafb7369370c9654b37792af8eafa0925400e9281d57f0a * Support MSC3932: Extensible events room version feature flag * Changelog entry
Diffstat (limited to '')
-rw-r--r-- | synapse/config/experimental.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/config/experimental.py b/synapse/config/experimental.py index b3f51fc57d..573fa0386f 100644 --- a/synapse/config/experimental.py +++ b/synapse/config/experimental.py @@ -16,6 +16,7 @@ from typing import Any, Optional import attr +from synapse.api.room_versions import KNOWN_ROOM_VERSIONS, RoomVersions from synapse.config._base import Config from synapse.types import JsonDict @@ -131,3 +132,7 @@ class ExperimentalConfig(Config): # MSC1767 and friends: Extensible Events self.msc1767_enabled: bool = experimental.get("msc1767_enabled", False) + if self.msc1767_enabled: + # Enable room version (and thus applicable push rules from MSC3931/3932) + version_id = RoomVersions.MSC1767v10.identifier + KNOWN_ROOM_VERSIONS[version_id] = RoomVersions.MSC1767v10 |