mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +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?;
|
||||
Ok(Verified)
|
||||
}
|
||||
@@ -2444,7 +2440,11 @@ async fn mark_recipients_as_verified(
|
||||
from_id: ContactId,
|
||||
to_ids: Vec<ContactId>,
|
||||
mimeparser: &MimeMessage,
|
||||
) -> Result<(), anyhow::Error> {
|
||||
) -> Result<()> {
|
||||
if to_ids.is_empty() {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let rows = context
|
||||
.sql
|
||||
.query_map(
|
||||
|
||||
Reference in New Issue
Block a user