perf: Don't check accept_make_join twice for restricted make_join
This commit is contained in:
parent
d52e0dc014
commit
006c57face
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ pub(crate) async fn create_join_event_template_route(
|
|||
None
|
||||
}
|
||||
};
|
||||
if services.antispam.check_all_joins() {
|
||||
if services.antispam.check_all_joins() && join_authorized_via_users_server.is_none() {
|
||||
if let Err(_) = services
|
||||
.antispam
|
||||
.meowlnir_accept_make_join(body.room_id.clone(), body.user_id.clone())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue