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 30, 2021
1 parent c167e09 commit 98827df
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/10449.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).
19 changes: 17 additions & 2 deletions synapse/api/room_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,20 @@ class RoomVersions:
msc2403_knocking=True,
msc2716_historical=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,
msc2716_historical=False,
)


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

Expand Down Expand Up @@ -261,12 +276,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 98827df

Please sign in to comment.