add missing knock_restricted room type to /publicRooms
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
f897b4daee
commit
6b1b464abc
1 changed files with 2 additions and 1 deletions
|
@ -407,7 +407,8 @@ async fn public_rooms_chunk(services: &Services, room_id: OwnedRoomId) -> Public
|
||||||
.room_state_get_content(&room_id, &StateEventType::RoomJoinRules, "")
|
.room_state_get_content(&room_id, &StateEventType::RoomJoinRules, "")
|
||||||
.map_ok(|c: RoomJoinRulesEventContent| match c.join_rule {
|
.map_ok(|c: RoomJoinRulesEventContent| match c.join_rule {
|
||||||
JoinRule::Public => PublicRoomJoinRule::Public,
|
JoinRule::Public => PublicRoomJoinRule::Public,
|
||||||
JoinRule::Knock => PublicRoomJoinRule::Knock,
|
JoinRule::Knock => "knock".into(),
|
||||||
|
JoinRule::KnockRestricted(_) => "knock_restricted".into(),
|
||||||
_ => "invite".into(),
|
_ => "invite".into(),
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue