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