Load new posts per 100 instead of 200

This commit is contained in:
Thomas Ricouard 2023-12-31 08:11:53 +01:00
parent 3a721d3280
commit acccdb8041

View file

@ -278,7 +278,7 @@ extension TimelineViewModel: StatusesFetcher {
private func fetchNewPagesFrom(latestStatus: String, client: Client) async throws {
canStreamEvents = false
let initialTimeline = timeline
var newStatuses: [Status] = await fetchNewPages(minId: latestStatus, maxPages: 10)
var newStatuses: [Status] = await fetchNewPages(minId: latestStatus, maxPages: 5)
// Dedup statuses, a status with the same id could have been streamed in.
let ids = await datasource.get().map(\.id)