mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
chore: Clippy fixes
This commit is contained in:
5 files changed
+4
-9
No files matched your search
@@ -73,7 +73,7 @@ pub(crate) async fn invite_user_route(
|
||||
}
|
||||
|
||||
// check for blocked invites if the recipient is a local user.
|
||||
if services.globals.user_is_local(&recipient_user) {
|
||||
if services.globals.user_is_local(recipient_user) {
|
||||
let recipient_filter_level = services
|
||||
.users
|
||||
.invite_filter_level(sender_user, recipient_user)
|
||||
|
||||
@@ -7,7 +7,7 @@ use conduwuit::{
|
||||
},
|
||||
ref_at,
|
||||
utils::{
|
||||
IterStream, ReadyExt, TryFutureExtExt,
|
||||
IterStream, ReadyExt,
|
||||
result::LogErr,
|
||||
stream::{BroadbandExt, TryIgnore, WidebandExt},
|
||||
},
|
||||
|
||||
@@ -242,7 +242,7 @@ pub(crate) async fn build_sync_events(
|
||||
.state_cache
|
||||
.rooms_invited(sender_user)
|
||||
.wide_filter_map(async |(room_id, invite_state)| {
|
||||
if is_ignored_invite(&services, sender_user, &room_id).await {
|
||||
if is_ignored_invite(services, sender_user, &room_id).await {
|
||||
None
|
||||
} else {
|
||||
Some((room_id, invite_state))
|
||||
|
||||
@@ -108,7 +108,7 @@ pub(crate) async fn sync_events_v5_route(
|
||||
.state_cache
|
||||
.rooms_invited(sender_user)
|
||||
.wide_filter_map(async |(room_id, invite_state)| {
|
||||
if is_ignored_invite(&services, sender_user, &room_id).await {
|
||||
if is_ignored_invite(services, sender_user, &room_id).await {
|
||||
None
|
||||
} else {
|
||||
Some((room_id, invite_state))
|
||||
|
||||
@@ -108,11 +108,6 @@ pub(crate) async fn create_invite_route(
|
||||
return Err!(Request(Forbidden("This server does not allow room invites.")));
|
||||
}
|
||||
|
||||
let recipient_invite_filter_level = services
|
||||
.users
|
||||
.invite_filter_level(sender_user, &recipient_user)
|
||||
.await;
|
||||
|
||||
let mut invite_state = body.invite_room_state.clone();
|
||||
|
||||
let mut event: JsonObject = serde_json::from_str(body.event.get())
|
||||
|
||||
Reference in new issue
Block a user