More safeguard
This commit is contained in:
parent
758fa8a6f9
commit
827e06b26c
|
@ -96,6 +96,7 @@ class TimelineViewModel: ObservableObject, StatusesFetcher {
|
||||||
}
|
}
|
||||||
|
|
||||||
func displayPendingStatuses() {
|
func displayPendingStatuses() {
|
||||||
|
guard timeline == .home else { return }
|
||||||
statuses.insert(contentsOf: pendingStatuses, at: 0)
|
statuses.insert(contentsOf: pendingStatuses, at: 0)
|
||||||
pendingStatuses = []
|
pendingStatuses = []
|
||||||
statusesState = .display(statuses: statuses, nextPageState: .hasNextPage)
|
statusesState = .display(statuses: statuses, nextPageState: .hasNextPage)
|
||||||
|
|
Loading…
Reference in New Issue