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

Commit ccdcc7f

Browse files
committed
Add room version 8.
1 parent e0fac31 commit ccdcc7f

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

Diff for: changelog.d/10448.feature

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Support [MSC3289: room version 8](https://github.com/matrix-org/matrix-doc/pull/3289).

Diff for: synapse/api/room_versions.py

+16-2
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,19 @@ class RoomVersions:
193193
msc3083_join_rules=False,
194194
msc2403_knocking=True,
195195
)
196+
V8 = RoomVersion(
197+
"8",
198+
RoomDisposition.STABLE,
199+
EventFormatVersions.V3,
200+
StateResolutionVersions.V2,
201+
enforce_key_validity=True,
202+
special_case_aliases_auth=False,
203+
strict_canonicaljson=True,
204+
limit_notifications_power_levels=True,
205+
msc2176_redaction_rules=False,
206+
msc3083_join_rules=True,
207+
msc2403_knocking=True,
208+
)
196209

197210

198211
KNOWN_ROOM_VERSIONS: Dict[str, RoomVersion] = {
@@ -207,6 +220,7 @@ class RoomVersions:
207220
RoomVersions.MSC2176,
208221
RoomVersions.MSC3083,
209222
RoomVersions.V7,
223+
RoomVersions.V8,
210224
)
211225
}
212226

@@ -234,12 +248,12 @@ class RoomVersionCapability:
234248
for cap in (
235249
RoomVersionCapability(
236250
"knock",
237-
RoomVersions.V7,
251+
RoomVersions.V8,
238252
lambda room_version: room_version.msc2403_knocking,
239253
),
240254
RoomVersionCapability(
241255
"restricted",
242-
None,
256+
RoomVersions.V8,
243257
lambda room_version: room_version.msc3083_join_rules,
244258
),
245259
)

0 commit comments

Comments
 (0)