forked from shadowfacts/Tusker
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:
parent
5de0c034f4
commit
ba032412eb
|
@ -156,9 +156,11 @@ class ProfileStatusesViewController: UIViewController, TimelineLikeCollectionVie
|
|||
}
|
||||
|
||||
Task {
|
||||
if case .notLoadedInitial = await controller.state {
|
||||
await load()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func setAccountID(_ id: String) {
|
||||
self.accountID = id
|
||||
|
|
|
@ -140,9 +140,11 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro
|
|||
}
|
||||
|
||||
Task {
|
||||
if case .notLoadedInitial = await controller.state {
|
||||
await controller.loadInitial()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
super.viewDidAppear(animated)
|
||||
|
|
Loading…
Reference in New Issue