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

Commit b85f494

Browse files
committed
Add MSC3820 opt2 unstable room version
MSC: matrix-org/matrix-spec-proposals#3820 There are no tests for this because the MSCs involved should already be tested, and when v11 is accepted there might be different test cases. Instead, it's suggested that tests get moved/created when v11 becomes stable.
1 parent 8839b6c commit b85f494

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

synapse/api/room_versions.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,30 @@ class RoomVersions:
485485
msc3931_push_features=(),
486486
msc3989_redaction_rules=True,
487487
)
488+
MSC3820opt2 = RoomVersion(
489+
# Based upon v10
490+
"org.matrix.msc3820.opt2",
491+
RoomDisposition.UNSTABLE,
492+
EventFormatVersions.ROOM_V4_PLUS,
493+
StateResolutionVersions.V2,
494+
enforce_key_validity=True,
495+
special_case_aliases_auth=False,
496+
strict_canonicaljson=True,
497+
limit_notifications_power_levels=True,
498+
msc2175_implicit_room_creator=True, # Used by MSC3820
499+
msc2176_redaction_rules=True, # Used by MSC3820
500+
msc3083_join_rules=True,
501+
msc3375_redaction_rules=True,
502+
msc2403_knocking=True,
503+
msc2716_historical=False,
504+
msc2716_redactions=False,
505+
msc3389_relation_redactions=False,
506+
msc3787_knock_restricted_join_rule=True,
507+
msc3667_int_only_power_levels=True,
508+
msc3821_redaction_rules=True, # Used by MSC3820
509+
msc3931_push_features=(),
510+
msc3989_redaction_rules=True, # Used by MSC3820
511+
)
488512

489513

490514
KNOWN_ROOM_VERSIONS: Dict[str, RoomVersion] = {

0 commit comments

Comments
 (0)