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:
B. Petersen
2020-09-23 23:53:59 +02:00
parent 81b0b24114
commit 12bc364e42
6 changed files with 32 additions and 20 deletions

View File

@@ -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