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:
Hocuri
2020-08-01 10:57:32 +02:00
parent b2e3c94b3f
commit 6e8808f69b

View File

@@ -1499,7 +1499,6 @@ pub(crate) async fn prefetch_should_download(
let accepted_contact = origin.is_known();
let show = is_autocrypt_setup_message
|| maybe_ndn
|| match show_emails {
ShowEmails::Off => is_chat_message || is_reply_to_chat_message,
ShowEmails::AcceptedContacts => {
@@ -1507,8 +1506,8 @@ pub(crate) async fn prefetch_should_download(
}
ShowEmails::All => true,
};
let show = show && !blocked_contact;
Ok(show)
let should_download = (show && !blocked_contact) || maybe_ndn;
Ok(should_download)
}
async fn message_needs_processing(