mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
Show received MDNs even if user has disabled them
Delta Chat does not request MDNs if they are disabled, so this change does not make much difference, but simplifies the logic.
This commit is contained in:
committed by
holger krekel
parent
8a394fb08f
commit
2bba1be817
@@ -775,14 +775,10 @@ impl<'a> MimeMessage<'a> {
|
||||
if self.reports.is_empty() {
|
||||
return;
|
||||
}
|
||||
// If a user disabled MDNs we do not show pending incoming ones anymore
|
||||
// but we do want them to potentially get moved from the INBOX still.
|
||||
let mdns_enabled = self.context.get_config_bool(Config::MdnsEnabled);
|
||||
|
||||
for report in &self.reports {
|
||||
let mut mdn_recognized = false;
|
||||
|
||||
if mdns_enabled {
|
||||
if let Some((chat_id, msg_id)) = message::mdn_from_ext(
|
||||
self.context,
|
||||
from_id,
|
||||
@@ -792,9 +788,8 @@ impl<'a> MimeMessage<'a> {
|
||||
self.context.call_cb(Event::MsgRead { chat_id, msg_id });
|
||||
mdn_recognized = true;
|
||||
}
|
||||
}
|
||||
|
||||
if self.has_chat_version() || mdn_recognized || !mdns_enabled {
|
||||
if self.has_chat_version() || mdn_recognized {
|
||||
let mut param = Params::new();
|
||||
param.set(Param::ServerFolder, server_folder.as_ref());
|
||||
param.set_int(Param::ServerUid, server_uid as i32);
|
||||
|
||||
Reference in New Issue
Block a user