From 7376b289ca0e628414d7c5bb778dbf9ecc1f39a4 Mon Sep 17 00:00:00 2001 From: Diogo Date: Thu, 7 Nov 2024 21:13:40 +0000 Subject: [PATCH] fix open chat from group when gaps --- apps/ios/Shared/Model/SimpleXAPI.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/ios/Shared/Model/SimpleXAPI.swift b/apps/ios/Shared/Model/SimpleXAPI.swift index 3556780f58..bb0f579002 100644 --- a/apps/ios/Shared/Model/SimpleXAPI.swift +++ b/apps/ios/Shared/Model/SimpleXAPI.swift @@ -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 {