mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-11 08:35:26 +00:00
Ensure all pages are loaded when resuming session
This commit is contained in:
parent
0a9098c3db
commit
f53cfd89fe
1 changed files with 6 additions and 0 deletions
|
@ -267,6 +267,12 @@ extension TimelineViewModel: StatusesFetcher {
|
||||||
canStreamEvents = true
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue