mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
do not unarchive one-to-one on receiving read-receipts
This commit is contained in:
@@ -772,9 +772,6 @@ async fn add_parts(
|
|||||||
|
|
||||||
*sent_timestamp = std::cmp::min(*sent_timestamp, rcvd_timestamp);
|
*sent_timestamp = std::cmp::min(*sent_timestamp, rcvd_timestamp);
|
||||||
|
|
||||||
// unarchive chat
|
|
||||||
chat_id.unarchive(context).await?;
|
|
||||||
|
|
||||||
// if the mime-headers should be saved, find out its size
|
// if the mime-headers should be saved, find out its size
|
||||||
// (the mime-header ends with an empty line)
|
// (the mime-header ends with an empty line)
|
||||||
let save_mime_headers = context.get_config_bool(Config::SaveMimeHeaders).await;
|
let save_mime_headers = context.get_config_bool(Config::SaveMimeHeaders).await;
|
||||||
@@ -896,6 +893,10 @@ async fn add_parts(
|
|||||||
*insert_msg_id = *id;
|
*insert_msg_id = *id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !is_hidden {
|
||||||
|
chat_id.unarchive(context).await?;
|
||||||
|
}
|
||||||
|
|
||||||
*hidden = is_hidden;
|
*hidden = is_hidden;
|
||||||
created_db_entries.extend(ids.iter().map(|id| (chat_id, *id)));
|
created_db_entries.extend(ids.iter().map(|id| (chat_id, *id)));
|
||||||
mime_parser.parts = new_parts;
|
mime_parser.parts = new_parts;
|
||||||
|
|||||||
Reference in New Issue
Block a user