fix: Don't put a double dot at the end of error messages (#4398)

This commit is contained in:
Hocuri
2023-05-11 18:43:22 +02:00
committed by GitHub
parent 68aa15950a
commit b2c299fa82

View File

@@ -2084,7 +2084,7 @@ async fn check_verified_properties(
) -> Result<()> {
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() {
// 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 {
ensure!(
peerstate.has_verified_key(&mimeparser.signatures),
"The message was sent with non-verified encryption."
"The message was sent with non-verified encryption"
);
}
}