mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
fix: Don't put a double dot at the end of error messages (#4398)
This commit is contained in:
@@ -2084,7 +2084,7 @@ async fn check_verified_properties(
|
|||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
let contact = Contact::load_from_db(context, from_id).await?;
|
let contact = Contact::load_from_db(context, from_id).await?;
|
||||||
|
|
||||||
ensure!(mimeparser.was_encrypted(), "This message is not encrypted.");
|
ensure!(mimeparser.was_encrypted(), "This message is not encrypted");
|
||||||
|
|
||||||
if mimeparser.get_header(HeaderDef::ChatVerified).is_none() {
|
if mimeparser.get_header(HeaderDef::ChatVerified).is_none() {
|
||||||
// we do not fail here currently, this would exclude (a) non-deltas
|
// we do not fail here currently, this would exclude (a) non-deltas
|
||||||
@@ -2117,7 +2117,7 @@ async fn check_verified_properties(
|
|||||||
if let Some(peerstate) = peerstate {
|
if let Some(peerstate) = peerstate {
|
||||||
ensure!(
|
ensure!(
|
||||||
peerstate.has_verified_key(&mimeparser.signatures),
|
peerstate.has_verified_key(&mimeparser.signatures),
|
||||||
"The message was sent with non-verified encryption."
|
"The message was sent with non-verified encryption"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user