mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user