feat: add MsgReadCountChanged event

Useful for updating the read count on channel messages live.

This supersedes https://github.com/chatmail/core/pull/7979.
Unlike that MR, this one is not breaking.

Needed for https://github.com/deltachat/deltachat-desktop/issues/5220.
This commit is contained in:
WofWca
2026-06-16 11:38:07 +04:00
parent 246376259e
commit ab03fe3040
6 changed files with 42 additions and 1 deletions
+1
View File
@@ -2507,6 +2507,7 @@ async fn handle_mdn(
// note(treefit): only matters if it is the last message in chat (but probably too expensive to check, debounce also solves it)
chatlist_events::emit_chatlist_item_changed(context, chat_id);
}
context.emit_event(EventType::MsgReadCountChanged { chat_id, msg_id });
Ok(())
}