Fix timeline reloading every time VC appears

Caused by changes to TimelineLikeController required to let list
timelines reload from scratch
This commit is contained in:
Shadowfacts 2022-11-01 21:52:28 -04:00
parent 5de0c034f4
commit ba032412eb
2 changed files with 6 additions and 2 deletions

View File

@ -156,7 +156,9 @@ class ProfileStatusesViewController: UIViewController, TimelineLikeCollectionVie
} }
Task { Task {
await load() if case .notLoadedInitial = await controller.state {
await load()
}
} }
} }

View File

@ -140,7 +140,9 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro
} }
Task { Task {
await controller.loadInitial() if case .notLoadedInitial = await controller.state {
await controller.loadInitial()
}
} }
} }