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

Commit b377618

Browse files
committed
1 parent 7ecc555 commit b377618

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

synapse/config/experimental.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import attr
1818

19+
from synapse.api.room_versions import KNOWN_ROOM_VERSIONS, RoomVersions
1920
from synapse.config._base import Config
2021
from synapse.types import JsonDict
2122

@@ -131,3 +132,7 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
131132

132133
# MSC1767 and friends: Extensible Events
133134
self.msc1767_enabled: bool = experimental.get("msc1767_enabled", False)
135+
if self.msc1767_enabled:
136+
# Enable room version (and thus applicable push rules from MSC3931/3932)
137+
version_id = RoomVersions.MSC1767v10.identifier
138+
KNOWN_ROOM_VERSIONS[version_id] = RoomVersions.MSC1767v10

0 commit comments

Comments
 (0)