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

Commit 4e01309

Browse files
authored
Add MSC3820 (room version 11) option 2 unstable room version. (#15666)
1 parent 77156a4 commit 4e01309

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

changelog.d/15666.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Implement "option 2" for [MSC3820](https://github.com/matrix-org/matrix-spec-proposals/pull/3820): Room version 11.

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)