mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 17:06:35 +03:00
cargo fmt
This commit is contained in:
committed by
holger krekel
parent
a48d0492c8
commit
a52131b574
@@ -776,28 +776,28 @@ impl<'a> MimeMessage<'a> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut mdn_recognized = false;
|
let mut mdn_recognized = false;
|
||||||
for report in &self.reports {
|
for report in &self.reports {
|
||||||
if let Some((chat_id, msg_id)) = message::mdn_from_ext(
|
if let Some((chat_id, msg_id)) = message::mdn_from_ext(
|
||||||
self.context,
|
self.context,
|
||||||
from_id,
|
from_id,
|
||||||
&report.original_message_id,
|
&report.original_message_id,
|
||||||
sent_timestamp,
|
sent_timestamp,
|
||||||
) {
|
) {
|
||||||
self.context.call_cb(Event::MsgRead { chat_id, msg_id });
|
self.context.call_cb(Event::MsgRead { chat_id, msg_id });
|
||||||
mdn_recognized = true;
|
mdn_recognized = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.has_chat_version() || mdn_recognized {
|
if self.has_chat_version() || mdn_recognized {
|
||||||
let mut param = Params::new();
|
let mut param = Params::new();
|
||||||
param.set(Param::ServerFolder, server_folder.as_ref());
|
param.set(Param::ServerFolder, server_folder.as_ref());
|
||||||
param.set_int(Param::ServerUid, server_uid as i32);
|
param.set_int(Param::ServerUid, server_uid as i32);
|
||||||
if self.has_chat_version() && self.context.get_config_bool(Config::MvboxMove) {
|
if self.has_chat_version() && self.context.get_config_bool(Config::MvboxMove) {
|
||||||
param.set_int(Param::AlsoMove, 1);
|
param.set_int(Param::AlsoMove, 1);
|
||||||
}
|
|
||||||
job_add(self.context, Action::MarkseenMdnOnImap, 0, param, 0);
|
|
||||||
}
|
}
|
||||||
|
job_add(self.context, Action::MarkseenMdnOnImap, 0, param, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user