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

Commit

Permalink
Add room version 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jul 21, 2021
1 parent e0fac31 commit ccdcc7f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/10448.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support [MSC3289: room version 8](https://github.com/matrix-org/matrix-doc/pull/3289).
18 changes: 16 additions & 2 deletions synapse/api/room_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,19 @@ class RoomVersions:
msc3083_join_rules=False,
msc2403_knocking=True,
)
V8 = RoomVersion(
"8",
RoomDisposition.STABLE,
EventFormatVersions.V3,
StateResolutionVersions.V2,
enforce_key_validity=True,
special_case_aliases_auth=False,
strict_canonicaljson=True,
limit_notifications_power_levels=True,
msc2176_redaction_rules=False,
msc3083_join_rules=True,
msc2403_knocking=True,
)


KNOWN_ROOM_VERSIONS: Dict[str, RoomVersion] = {
Expand All @@ -207,6 +220,7 @@ class RoomVersions:
RoomVersions.MSC2176,
RoomVersions.MSC3083,
RoomVersions.V7,
RoomVersions.V8,
)
}

Expand Down Expand Up @@ -234,12 +248,12 @@ class RoomVersionCapability:
for cap in (
RoomVersionCapability(
"knock",
RoomVersions.V7,
RoomVersions.V8,
lambda room_version: room_version.msc2403_knocking,
),
RoomVersionCapability(
"restricted",
None,
RoomVersions.V8,
lambda room_version: room_version.msc3083_join_rules,
),
)
Expand Down

0 comments on commit ccdcc7f

Please sign in to comment.