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

Commit 98827df

Browse files
committed
Add room version 8.
1 parent c167e09 commit 98827df

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

changelog.d/10449.feature

Lines changed: 1 addition & 0 deletions
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).

synapse/api/room_versions.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,20 @@ class RoomVersions:
219219
msc2403_knocking=True,
220220
msc2716_historical=True,
221221
)
222+
V8 = RoomVersion(
223+
"8",
224+
RoomDisposition.STABLE,
225+
EventFormatVersions.V3,
226+
StateResolutionVersions.V2,
227+
enforce_key_validity=True,
228+
special_case_aliases_auth=False,
229+
strict_canonicaljson=True,
230+
limit_notifications_power_levels=True,
231+
msc2176_redaction_rules=False,
232+
msc3083_join_rules=True,
233+
msc2403_knocking=True,
234+
msc2716_historical=False,
235+
)
222236

223237

224238
KNOWN_ROOM_VERSIONS: Dict[str, RoomVersion] = {
@@ -234,6 +248,7 @@ class RoomVersions:
234248
RoomVersions.MSC3083,
235249
RoomVersions.V7,
236250
RoomVersions.MSC2716,
251+
RoomVersions.V8,
237252
)
238253
}
239254

@@ -261,12 +276,12 @@ class RoomVersionCapability:
261276
for cap in (
262277
RoomVersionCapability(
263278
"knock",
264-
RoomVersions.V7,
279+
RoomVersions.V8,
265280
lambda room_version: room_version.msc2403_knocking,
266281
),
267282
RoomVersionCapability(
268283
"restricted",
269-
None,
284+
RoomVersions.V8,
270285
lambda room_version: room_version.msc3083_join_rules,
271286
),
272287
)

0 commit comments

Comments
 (0)