This commit is contained in:
Thomas Ricouard 2024-02-11 11:13:03 +01:00
parent 923927cddd
commit fcd56ab7a0

View file

@ -376,11 +376,7 @@ extension TimelineViewModel: StatusesFetcher {
} }
} }
// We trigger a new fetch so we can get the next new statuses if any. if !Task.isCancelled,
// If none, it'll stop there.
// Only do that in the context of the home timeline as other don't worth catching up that much.
if timeline == .home,
!Task.isCancelled,
let latest = await datasource.get().first let latest = await datasource.get().first
{ {
pendingStatusesObserver.isLoadingNewStatuses = true pendingStatusesObserver.isLoadingNewStatuses = true