emit DC_EVENT_MSGS_NOTICED when a chat was answered on another device

This commit is contained in:
B. Petersen
2020-10-10 00:34:28 +02:00
parent 4c8e6ef495
commit c2b222e6a5
3 changed files with 28 additions and 1 deletions

View File

@@ -845,6 +845,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;