Skip to content

Commit

Permalink
Don't error timeline on new statuses if there is statuses displayed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Oct 28, 2024
1 parent 35e8cb6 commit 1d11f78
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ extension TimelineViewModel: StatusesFetcher {
pendingStatusesObserver.isLoadingNewStatuses = !pullToRefresh
try await fetchNewPagesFrom(latestStatus: latest.id, client: client)
}
} catch let error {
if (error as NSError).code != -999 {
} catch {
if await datasource.isEmpty {
statusesState = .error(error: error)
}
canStreamEvents = true
Expand Down

0 comments on commit 1d11f78

Please sign in to comment.