mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 01:31:04 +00:00
Don't error timeline on new statuses if there is statuses displayed.
This commit is contained in:
parent
35e8cb6512
commit
1d11f78abc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue