Give setup-changed messages the same timestamp as the previous message (#3188)

This commit is contained in:
Hocuri
2022-04-06 17:05:44 +02:00
committed by GitHub
parent e29d008914
commit 345a4bc504
4 changed files with 43 additions and 7 deletions

View File

@@ -355,6 +355,10 @@ impl Chatlist {
pub fn get_index_for_id(&self, id: ChatId) -> Option<usize> {
self.ids.iter().position(|(chat_id, _)| chat_id == &id)
}
pub fn iter(&self) -> impl Iterator<Item = &(ChatId, Option<MsgId>)> {
self.ids.iter()
}
}
/// Returns the number of archived chats