Address PR comments (IOS-266)

This commit is contained in:
Marcus Kida 2024-05-08 09:21:31 +02:00
parent cb08a6ecab
commit 543b82f1fa
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
2 changed files with 3 additions and 0 deletions

View File

@ -148,6 +148,8 @@ extension HomeTimelineViewModel.LoadLatestState {
var oldRecords = viewModel.dataController.records
var newRecords = [MastodonFeed]()
/// See HomeTimelineViewModel.swift for the "Load More"-counterpart when fetching new timeline items
for (index, status) in newStatuses.enumerated() {
if index < newStatuses.count - 1 {
newRecords.append(

View File

@ -186,6 +186,7 @@ extension HomeTimelineViewModel {
var feedItems = [MastodonFeed]()
/// See HomeTimelineViewModel+LoadLatestState.swift for the "Load More"-counterpart when fetching new timeline items
for (index, item) in items.enumerated() {
let hasMore: Bool