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

Commit

Permalink
Prefer room v9 for restricted rooms. (#10772)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
clokep authored Sep 9, 2021
1 parent abedf7d commit a621ba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/10772.feature
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion synapse/api/room_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class RoomVersionCapability:
),
RoomVersionCapability(
"restricted",
RoomVersions.V8,
RoomVersions.V9,
lambda room_version: room_version.msc3083_join_rules,
),
)
Expand Down

0 comments on commit a621ba0

Please sign in to comment.