From 67f00fbb84db24fc3e9c6dff681af5197f247a80 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 8 Jul 2025 19:58:08 +0000 Subject: [PATCH] refactor: remove check that is always false The check for chat_id.is_some() is inside the `else` branch of a pattern-matching `if` that looks for `Some` pattern. --- src/receive_imf.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/receive_imf.rs b/src/receive_imf.rs index 86d1577ac..4f4cc60e8 100644 --- a/src/receive_imf.rs +++ b/src/receive_imf.rs @@ -414,8 +414,7 @@ async fn get_to_and_past_contact_ids( } false => vec![], }; - if chat_id.is_some() - || (mime_parser.was_encrypted() && !ids.contains(&None)) + if mime_parser.was_encrypted() && !ids.contains(&None) // Prefer creating PGP chats if there are any key-contacts. At least this prevents // from replying unencrypted. || ids