Skip to content

Commit 67f00fb

Browse files
committed
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.
1 parent 389649e commit 67f00fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/receive_imf.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,7 @@ async fn get_to_and_past_contact_ids(
414414
}
415415
false => vec![],
416416
};
417-
if chat_id.is_some()
418-
|| (mime_parser.was_encrypted() && !ids.contains(&None))
417+
if mime_parser.was_encrypted() && !ids.contains(&None)
419418
// Prefer creating PGP chats if there are any key-contacts. At least this prevents
420419
// from replying unencrypted.
421420
|| ids

0 commit comments

Comments
 (0)