diff --git a/src/core/matrix/state_res/event_auth.rs b/src/core/matrix/state_res/event_auth.rs index 9f5c4fed..74061720 100644 --- a/src/core/matrix/state_res/event_auth.rs +++ b/src/core/matrix/state_res/event_auth.rs @@ -814,7 +814,11 @@ where } else { true }, - | _ => true, + | JoinRule::Public => true, + | _ => { + warn!("Unknown join rule doesn't allow joining"); + false + }, } } },