feat: Do not sync invites from 4155-ignored users

This commit is contained in:
Ginger committed 2025-09-11 16:21:03 +00:00
1 parent 41fb65f379
commit b1df6911b3
2 files changed
+39 -12

No files matched your search

+3
View File
@@ -117,6 +117,9 @@ pub(crate) async fn create_invite_route(
.await;
if matches!(recipient_invite_filter_level, FilterLevel::Block) {
// return an error for blocked invites. ignored invites aren't handled here
// since the recipient's membership should still be changed to `invite`.
// they're filtered out in api::client::message::is_ignored_pdu
return Err!(Request(InviteBlocked(
"{recipient_user} has blocked invites from {sender_user}."
)));