Don't error timeline on new statuses if there is statuses displayed.

This commit is contained in:
Thomas Ricouard 2024-10-28 17:29:15 +01:00
parent 35e8cb6512
commit 1d11f78abc

View file

@ -213,8 +213,8 @@ extension TimelineViewModel: StatusesFetcher {
pendingStatusesObserver.isLoadingNewStatuses = !pullToRefresh pendingStatusesObserver.isLoadingNewStatuses = !pullToRefresh
try await fetchNewPagesFrom(latestStatus: latest.id, client: client) try await fetchNewPagesFrom(latestStatus: latest.id, client: client)
} }
} catch let error { } catch {
if (error as NSError).code != -999 { if await datasource.isEmpty {
statusesState = .error(error: error) statusesState = .error(error: error)
} }
canStreamEvents = true canStreamEvents = true