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,7 +156,9 @@ class ProfileStatusesViewController: UIViewController, TimelineLikeCollectionVie
|
||||
}
|
||||
|
||||
Task {
|
||||
await load()
|
||||
if case .notLoadedInitial = await controller.state {
|
||||
await load()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,9 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro
|
||||
}
|
||||
|
||||
Task {
|
||||
await controller.loadInitial()
|
||||
if case .notLoadedInitial = await controller.state {
|
||||
await controller.loadInitial()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user