Fix unnested-or-patterns
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
9e51525c25
commit
b3fc8516ed
1 changed files with 1 additions and 4 deletions
|
@ -995,10 +995,7 @@ pub async fn join_room_by_id_helper(
|
||||||
|
|
||||||
let restriction_rooms = match join_rules_event_content {
|
let restriction_rooms = match join_rules_event_content {
|
||||||
Some(RoomJoinRulesEventContent {
|
Some(RoomJoinRulesEventContent {
|
||||||
join_rule: JoinRule::Restricted(restricted),
|
join_rule: JoinRule::Restricted(restricted) | JoinRule::KnockRestricted(restricted),
|
||||||
})
|
|
||||||
| Some(RoomJoinRulesEventContent {
|
|
||||||
join_rule: JoinRule::KnockRestricted(restricted),
|
|
||||||
}) => restricted
|
}) => restricted
|
||||||
.allow
|
.allow
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
|
Loading…
Add table
Reference in a new issue