Address PR comments (IOS-266)
This commit is contained in:
parent
cb08a6ecab
commit
543b82f1fa
|
@ -148,6 +148,8 @@ extension HomeTimelineViewModel.LoadLatestState {
|
||||||
var oldRecords = viewModel.dataController.records
|
var oldRecords = viewModel.dataController.records
|
||||||
|
|
||||||
var newRecords = [MastodonFeed]()
|
var newRecords = [MastodonFeed]()
|
||||||
|
|
||||||
|
/// See HomeTimelineViewModel.swift for the "Load More"-counterpart when fetching new timeline items
|
||||||
for (index, status) in newStatuses.enumerated() {
|
for (index, status) in newStatuses.enumerated() {
|
||||||
if index < newStatuses.count - 1 {
|
if index < newStatuses.count - 1 {
|
||||||
newRecords.append(
|
newRecords.append(
|
||||||
|
|
|
@ -186,6 +186,7 @@ extension HomeTimelineViewModel {
|
||||||
|
|
||||||
var feedItems = [MastodonFeed]()
|
var feedItems = [MastodonFeed]()
|
||||||
|
|
||||||
|
/// See HomeTimelineViewModel+LoadLatestState.swift for the "Load More"-counterpart when fetching new timeline items
|
||||||
for (index, item) in items.enumerated() {
|
for (index, item) in items.enumerated() {
|
||||||
let hasMore: Bool
|
let hasMore: Bool
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue