mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
fix open chat from group when gaps
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user