mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-09-02 16:13:47 +00:00
Load new posts per 100 instead of 200
This commit is contained in:
parent
3a721d3280
commit
acccdb8041
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ extension TimelineViewModel: StatusesFetcher {
|
||||||
private func fetchNewPagesFrom(latestStatus: String, client: Client) async throws {
|
private func fetchNewPagesFrom(latestStatus: String, client: Client) async throws {
|
||||||
canStreamEvents = false
|
canStreamEvents = false
|
||||||
let initialTimeline = timeline
|
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.
|
// Dedup statuses, a status with the same id could have been streamed in.
|
||||||
let ids = await datasource.get().map(\.id)
|
let ids = await datasource.get().map(\.id)
|
||||||
|
|
Loading…
Reference in a new issue