fix open chat from group when gaps

This commit is contained in:
Diogo
2024-11-07 21:13:40 +00:00
parent f1168a9973
commit 7376b289ca
+4 -1
View File
@@ -350,7 +350,10 @@ func loadChat(chat: Chat, search: String = "", clearItems: Bool = true) async {
let im = ItemsModel.shared
m.chatItemStatuses = [:]
if clearItems {
await MainActor.run { im.reversedChatItems = [] }
await MainActor.run {
im.reversedChatItems = []
im.gap = nil
}
}
let (chat, gap) = try await apiGetChat(type: cInfo.chatType, id: cInfo.apiId, search: search)
await MainActor.run {