Fix misplaced info! message

This commit is contained in:
link2xt
2022-11-27 10:01:25 +00:00
parent b341cfd4d9
commit 08de326930

View File

@@ -216,12 +216,12 @@ impl MimeMessage {
headers.remove("secure-join-fingerprint"); headers.remove("secure-join-fingerprint");
headers.remove("chat-verified"); headers.remove("chat-verified");
let is_thunderbird = if let Some(user_agent) = headers.get("user-agent") { let is_thunderbird = headers
info!(context, "Detected thunderbird"); .get("user-agent")
user_agent.contains("Thunderbird") .map_or(false, |user_agent| user_agent.contains("Thunderbird"));
} else { if is_thunderbird {
false info!(context, "Detected Thunderbird");
}; }
let from = from.context("No from in message")?; let from = from.context("No from in message")?;
let mut decryption_info = let mut decryption_info =