fix: Accept_may_join callback works again

This commit is contained in:
timedout 2026-01-05 11:34:15 +00:00 committed by Jade Ellis
parent 99f16c2dfc
commit 76865e6f91
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
4 changed files with 26 additions and 34 deletions

View file

@ -207,23 +207,15 @@ pub(crate) async fn user_can_perform_restricted_join(
return Ok(true);
}
},
| AllowRule::UnstableSpamChecker => {
match services
| AllowRule::UnstableSpamChecker =>
return match services
.antispam
.meowlnir_accept_make_join(room_id.to_owned(), user_id.to_owned())
.await
{
| Ok(()) => {
return Ok(true);
},
| Err(e) => {
info!(
"meowlnir rejected restricted join for user {} into room {}: {e:?}",
user_id, room_id
);
},
}
},
| Ok(()) => Ok(true),
| Err(e) => Err!(Request(Forbidden("Antispam rejected join request."))),
},
| _ => {
debug_info!(
"Unsupported allow rule in restricted join for room {}: {:?}",