mirror of
https://github.com/chatmail/core.git
synced 2026-05-23 00:36:32 +03:00
Download possible ndns also if the contact is blocked
Before, if the user had blocked their mailer daemon (like me), ndns were not parsed.
This commit is contained in:
@@ -1499,7 +1499,6 @@ pub(crate) async fn prefetch_should_download(
|
|||||||
let accepted_contact = origin.is_known();
|
let accepted_contact = origin.is_known();
|
||||||
|
|
||||||
let show = is_autocrypt_setup_message
|
let show = is_autocrypt_setup_message
|
||||||
|| maybe_ndn
|
|
||||||
|| match show_emails {
|
|| match show_emails {
|
||||||
ShowEmails::Off => is_chat_message || is_reply_to_chat_message,
|
ShowEmails::Off => is_chat_message || is_reply_to_chat_message,
|
||||||
ShowEmails::AcceptedContacts => {
|
ShowEmails::AcceptedContacts => {
|
||||||
@@ -1507,8 +1506,8 @@ pub(crate) async fn prefetch_should_download(
|
|||||||
}
|
}
|
||||||
ShowEmails::All => true,
|
ShowEmails::All => true,
|
||||||
};
|
};
|
||||||
let show = show && !blocked_contact;
|
let should_download = (show && !blocked_contact) || maybe_ndn;
|
||||||
Ok(show)
|
Ok(should_download)
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn message_needs_processing(
|
async fn message_needs_processing(
|
||||||
|
|||||||
Reference in New Issue
Block a user