mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 13:28:50 +01:00
More safeguard
This commit is contained in:
parent
758fa8a6f9
commit
827e06b26c
@ -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 New Issue
Block a user