mirror of
https://github.com/chatmail/core.git
synced 2026-05-11 10:56:29 +03:00
emit DC_EVENT_MSGS_NOTICED when a chat was answered on another device
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user