Ensure all pages are loaded when resuming session

This commit is contained in:
Thomas Ricouard 2023-02-05 07:44:05 +01:00
parent 0a9098c3db
commit f53cfd89fe
1 changed files with 6 additions and 0 deletions

View File

@ -267,6 +267,12 @@ extension TimelineViewModel: StatusesFetcher {
canStreamEvents = true
}
}
// We trigger a new fetch so we can get the next new statuses if any.
// If none, it'll stop there.
if let latest = statuses.first, let client {
try await fetchNewPagesFrom(latestStatus: latest, client: client)
}
}
}