mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 06:26:30 +03:00
Make decrypt_part synchronous
This commit is contained in:
@@ -53,8 +53,7 @@ pub async fn try_decrypt(
|
||||
encrypted_data_part,
|
||||
private_keyring,
|
||||
public_keyring_for_validate,
|
||||
)
|
||||
.await?
|
||||
)?
|
||||
.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.
|
||||
async fn decrypt_part(
|
||||
fn decrypt_part(
|
||||
mail: &ParsedMail<'_>,
|
||||
private_keyring: Keyring<SignedSecretKey>,
|
||||
public_keyring_for_validate: Keyring<SignedPublicKey>,
|
||||
|
||||
Reference in New Issue
Block a user