mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +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![],
|
false => vec![],
|
||||||
};
|
};
|
||||||
if chat_id.is_some()
|
if mime_parser.was_encrypted() && !ids.contains(&None)
|
||||||
|| (mime_parser.was_encrypted() && !ids.contains(&None))
|
|
||||||
// Prefer creating PGP chats if there are any key-contacts. At least this prevents
|
// Prefer creating PGP chats if there are any key-contacts. At least this prevents
|
||||||
// from replying unencrypted.
|
// from replying unencrypted.
|
||||||
|| ids
|
|| ids
|
||||||
|
|||||||
Reference in New Issue
Block a user