From 79c9b2abfb3d404d1438557f8e002302d684dde8 Mon Sep 17 00:00:00 2001 From: Lumaa Date: Sun, 18 Feb 2024 13:04:07 +0100 Subject: [PATCH] Fixed bug --- Threaded/Components/ProfileView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Threaded/Components/ProfileView.swift b/Threaded/Components/ProfileView.swift index a31ba05..438e0f0 100644 --- a/Threaded/Components/ProfileView.swift +++ b/Threaded/Components/ProfileView.swift @@ -157,7 +157,7 @@ struct ProfileView: View { var statusesList: some View { LazyVStack { - if loadingStatuses == false || statuses == nil { + if loadingStatuses == false { if !(statusesPinned?.isEmpty ?? true) { ForEach(statusesPinned!, id: \.id) { status in CompactPostView(status: status, pinned: true) @@ -194,11 +194,11 @@ struct ProfileView: View { guard statuses != nil && new >= statuses!.count - 6 && !loadingStatuses else { return } if let client = accountManager.getClient(), let lastStatus = statuses!.last { Task { - loadingStatuses = true +// loadingStatuses = true if let newStatuses: [Status] = try await client.get(endpoint: Accounts.statuses(id: account.id, sinceId: lastStatus.id, tag: nil, onlyMedia: nil, excludeReplies: nil, pinned: nil)) { statuses?.append(contentsOf: newStatuses) } - loadingStatuses = false +// loadingStatuses = false } } }