diff --git a/src/message.rs b/src/message.rs index 726ec5a1a..9230313c5 100644 --- a/src/message.rs +++ b/src/message.rs @@ -1285,7 +1285,7 @@ pub async fn markseen_msgs(context: &Context, msg_ids: Vec) -> bool { } } - for (updated_chat_id, _) in &updated_chat_ids { + for updated_chat_id in updated_chat_ids.keys() { context.emit_event(EventType::MsgsNoticed(*updated_chat_id)); }