mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
refactor: move to_ids.is_empty() check into mark_recepients_as_verified()
This commit is contained in:
@@ -2431,10 +2431,6 @@ async fn has_verified_encryption(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if to_ids.is_empty() {
|
|
||||||
return Ok(Verified);
|
|
||||||
}
|
|
||||||
|
|
||||||
mark_recipients_as_verified(context, from_id, to_ids, mimeparser).await?;
|
mark_recipients_as_verified(context, from_id, to_ids, mimeparser).await?;
|
||||||
Ok(Verified)
|
Ok(Verified)
|
||||||
}
|
}
|
||||||
@@ -2444,7 +2440,11 @@ async fn mark_recipients_as_verified(
|
|||||||
from_id: ContactId,
|
from_id: ContactId,
|
||||||
to_ids: Vec<ContactId>,
|
to_ids: Vec<ContactId>,
|
||||||
mimeparser: &MimeMessage,
|
mimeparser: &MimeMessage,
|
||||||
) -> Result<(), anyhow::Error> {
|
) -> Result<()> {
|
||||||
|
if to_ids.is_empty() {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
let rows = context
|
let rows = context
|
||||||
.sql
|
.sql
|
||||||
.query_map(
|
.query_map(
|
||||||
|
|||||||
Reference in New Issue
Block a user