mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 07:16:31 +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;
|
securejoin_seen = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
let test_normal_chat = ChatIdBlocked::lookup_by_contact(context, from_id)
|
let test_normal_chat = if from_id == 0 {
|
||||||
.await
|
Default::default()
|
||||||
.unwrap_or_default();
|
} else {
|
||||||
|
ChatIdBlocked::lookup_by_contact(context, from_id).await?
|
||||||
|
};
|
||||||
|
|
||||||
if chat_id.is_none() && mime_parser.failure_report.is_some() {
|
if chat_id.is_none() && mime_parser.failure_report.is_some() {
|
||||||
chat_id = Some(DC_CHAT_ID_TRASH);
|
chat_id = Some(DC_CHAT_ID_TRASH);
|
||||||
|
|||||||
Reference in New Issue
Block a user