From 4dbefcce3229e6d9c41902fb013d22d1a838a527 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Thu, 1 Aug 2024 21:04:21 +0100 Subject: [PATCH] dont pop the first chat --- apps/ios/Shared/Model/ChatModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ios/Shared/Model/ChatModel.swift b/apps/ios/Shared/Model/ChatModel.swift index 03518f3384..5be8a71d77 100644 --- a/apps/ios/Shared/Model/ChatModel.swift +++ b/apps/ios/Shared/Model/ChatModel.swift @@ -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]) }