refactor: add emit_msgs_changed_without_msg_id

Added debug assertions to make sure
MsgsChanged is not emitted with 0 IDs by accident.
This commit is contained in:
link2xt
2024-12-24 19:54:28 +00:00
committed by l
parent 779635d73b
commit 1089aea8e0
5 changed files with 37 additions and 16 deletions

View File

@@ -502,7 +502,7 @@ pub(crate) async fn delete_expired_messages(context: &Context, now: i64) -> Resu
}
for modified_chat_id in modified_chat_ids {
context.emit_msgs_changed(modified_chat_id, MsgId::new(0));
context.emit_msgs_changed_without_msg_id(modified_chat_id);
}
for msg_id in webxdc_deleted {