dont pop the first chat

This commit is contained in:
Evgeny Poberezkin
2024-08-01 21:04:21 +01:00
parent 31ebfb03fa
commit 4dbefcce32
+1 -1
View File
@@ -639,7 +639,7 @@ final class ChatModel: ObservableObject {
for chatId in chatsToPop {
if m.chatId == chatId {
skipped = chatId
} else if let i = m.getChatIndex(chatId) {
} else if let i = m.getChatIndex(chatId), i > 0 {
ixs.insert(i)
chs.append(m.chats[i])
}