Merge pull request #1981 from deltachat/notice-on-answer

basic DC_EVENT_MSGS_NOTICED multi-device-support
This commit is contained in:
bjoern
2020-10-12 17:58:32 +02:00
committed by GitHub
4 changed files with 37 additions and 8 deletions

View File

@@ -868,6 +868,11 @@ async fn add_parts(
"Message has {} parts and is assigned to chat #{}.", icnt, chat_id,
);
// new outgoing message from another device marks the chat as noticed.
if !incoming && !*hidden && !chat_id.is_special() {
chat::marknoticed_chat_if_older_than(context, chat_id, sort_timestamp).await?;
}
// check event to send
if chat_id.is_trash() || *hidden {
*create_event_to_send = None;