mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 18:36:30 +03:00
split DC_EVENT_MSGS_NOTICED off DC_EVENT_MSGS_CHANGED
the new event can be used for updating the badge counter. to get the old behaviour, implementations can just do the same on both events.
This commit is contained in:
@@ -1283,10 +1283,7 @@ pub async fn markseen_msgs(context: &Context, msg_ids: Vec<MsgId>) -> bool {
|
||||
}
|
||||
|
||||
if send_event {
|
||||
context.emit_event(EventType::MsgsChanged {
|
||||
chat_id: ChatId::new(0),
|
||||
msg_id: MsgId::new(0),
|
||||
});
|
||||
context.emit_event(EventType::MsgsNoticed(ChatId::new(0)));
|
||||
}
|
||||
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user