fix: Tombstone MDN before sending it (#8252)

Otherwise, when it appears on IMAP, it will mark chat messages as seen/noticed even if
markfresh_chat() is called meanwhile.
This commit is contained in:
iequidoo
2026-06-22 13:52:04 -03:00
committed by iequidoo
parent d1f4e59d82
commit 8b80ac146f
3 changed files with 37 additions and 1 deletions
+1 -1
View File
@@ -599,7 +599,7 @@ async fn send_mdn_rfc724_mid(
.ok()
})
.collect();
message::insert_tombstone(context, &rendered_msg.rfc724_mid).await?;
match smtp_send(context, &recipients, &body, smtp, None).await {
SendResult::Success => {
if !recipients.is_empty() {