client-api: Add knock_restricted join rule

According to MSC3787
This commit is contained in:
Kévin Commaille 2022-06-20 18:31:26 +02:00 committed by Kévin Commaille
parent 33a47427c1
commit 28d0d90ab5
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Improvements:
* Add support for querying relating events (MSC2675)
* Move `filter::RelationType` to `ruma_common::events::relations`
* Add unstable support for discovering an OpenID Connect server (MSC2965)
* Add `SpaceRoomJoinRule::KnockRestricted` (MSC3787)
# 0.14.1

View File

@ -164,6 +164,11 @@ pub enum SpaceRoomJoinRule {
/// only be seen by users inside the room.
Restricted,
/// Users can join the room if they are invited, or if they meet any of the conditions
/// described in a set of [`AllowRule`](ruma_common::events::room::join_rules::AllowRule)s, or
/// they can request an invite to the room.
KnockRestricted,
/// Anyone can join the room without any prior action.
Public,