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

Commit

Permalink
Add MSC3820 opt2 unstable room version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
turt2live committed May 24, 2023
1 parent 8839b6c commit b85f494
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions synapse/api/room_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,30 @@ class RoomVersions:
msc3931_push_features=(),
msc3989_redaction_rules=True,
)
MSC3820opt2 = RoomVersion(
# Based upon v10
"org.matrix.msc3820.opt2",
RoomDisposition.UNSTABLE,
EventFormatVersions.ROOM_V4_PLUS,
StateResolutionVersions.V2,
enforce_key_validity=True,
special_case_aliases_auth=False,
strict_canonicaljson=True,
limit_notifications_power_levels=True,
msc2175_implicit_room_creator=True, # Used by MSC3820
msc2176_redaction_rules=True, # Used by MSC3820
msc3083_join_rules=True,
msc3375_redaction_rules=True,
msc2403_knocking=True,
msc2716_historical=False,
msc2716_redactions=False,
msc3389_relation_redactions=False,
msc3787_knock_restricted_join_rule=True,
msc3667_int_only_power_levels=True,
msc3821_redaction_rules=True, # Used by MSC3820
msc3931_push_features=(),
msc3989_redaction_rules=True, # Used by MSC3820
)


KNOWN_ROOM_VERSIONS: Dict[str, RoomVersion] = {
Expand Down

0 comments on commit b85f494

Please sign in to comment.