From 006c57face2d8a0d3e9118182742bff6d23b54c3 Mon Sep 17 00:00:00 2001 From: timedout Date: Mon, 5 Jan 2026 12:41:12 +0000 Subject: [PATCH] perf: Don't check accept_make_join twice for restricted make_join --- src/api/server/make_join.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/server/make_join.rs b/src/api/server/make_join.rs index d5621ec5..2dc205c4 100644 --- a/src/api/server/make_join.rs +++ b/src/api/server/make_join.rs @@ -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())