mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
Make decrypt_part synchronous
This commit is contained in:
@@ -53,8 +53,7 @@ pub async fn try_decrypt(
|
|||||||
encrypted_data_part,
|
encrypted_data_part,
|
||||||
private_keyring,
|
private_keyring,
|
||||||
public_keyring_for_validate,
|
public_keyring_for_validate,
|
||||||
)
|
)?
|
||||||
.await?
|
|
||||||
.map(|(raw, fprints)| (raw, fprints, true)))
|
.map(|(raw, fprints)| (raw, fprints, true)))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,7 +205,7 @@ fn get_autocrypt_mime<'a, 'b>(mail: &'a ParsedMail<'b>) -> Option<&'a ParsedMail
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns Ok(None) if nothing encrypted was found.
|
/// Returns Ok(None) if nothing encrypted was found.
|
||||||
async fn decrypt_part(
|
fn decrypt_part(
|
||||||
mail: &ParsedMail<'_>,
|
mail: &ParsedMail<'_>,
|
||||||
private_keyring: Keyring<SignedSecretKey>,
|
private_keyring: Keyring<SignedSecretKey>,
|
||||||
public_keyring_for_validate: Keyring<SignedPublicKey>,
|
public_keyring_for_validate: Keyring<SignedPublicKey>,
|
||||||
|
|||||||
Reference in New Issue
Block a user