Prefer room v9 for restricted rooms. (#10772)

Hint to clients via the room capabilities API (MSC3244) that
room version 9 should be preferred for creating a room with
restricted join rules (instead of room version 8).
This commit is contained in:
Patrick Cloke 2021-09-09 07:37:33 -04:00 committed by GitHub
parent abedf7d77f
commit a621ba0259
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Prefer [room version 9](https://github.com/matrix-org/matrix-doc/pull/3375) for restricted rooms per the [room version caapabilities](https://github.com/matrix-org/matrix-doc/pull/3244) API.

View file

@ -324,7 +324,7 @@ MSC3244_CAPABILITIES = {
), ),
RoomVersionCapability( RoomVersionCapability(
"restricted", "restricted",
RoomVersions.V8, RoomVersions.V9,
lambda room_version: room_version.msc3083_join_rules, lambda room_version: room_version.msc3083_join_rules,
), ),
) )