mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-03 12:58:50 +00:00
More safeguard
This commit is contained in:
parent
758fa8a6f9
commit
827e06b26c
1 changed files with 1 additions and 0 deletions
|
@ -96,6 +96,7 @@ class TimelineViewModel: ObservableObject, StatusesFetcher {
|
|||
}
|
||||
|
||||
func displayPendingStatuses() {
|
||||
guard timeline == .home else { return }
|
||||
statuses.insert(contentsOf: pendingStatuses, at: 0)
|
||||
pendingStatuses = []
|
||||
statusesState = .display(statuses: statuses, nextPageState: .hasNextPage)
|
||||
|
|
Loading…
Reference in a new issue