mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
dc_receive_imf: do not ignore lookup_by_contact errors
This commit is contained in:
@@ -497,9 +497,11 @@ async fn add_parts(
|
||||
securejoin_seen = false;
|
||||
}
|
||||
|
||||
let test_normal_chat = ChatIdBlocked::lookup_by_contact(context, from_id)
|
||||
.await
|
||||
.unwrap_or_default();
|
||||
let test_normal_chat = if from_id == 0 {
|
||||
Default::default()
|
||||
} else {
|
||||
ChatIdBlocked::lookup_by_contact(context, from_id).await?
|
||||
};
|
||||
|
||||
if chat_id.is_none() && mime_parser.failure_report.is_some() {
|
||||
chat_id = Some(DC_CHAT_ID_TRASH);
|
||||
|
||||
Reference in New Issue
Block a user