chore: remove newPostsView when load gap toots
This commit is contained in:
parent
f7b4b5993a
commit
12e2c5f0d5
|
@ -83,10 +83,8 @@ extension HomeTimelineViewModel.LoadMiddleState {
|
|||
os_log("%{public}s[%{public}ld], %{public}s: load %{public}ld toots, %{public}%ld new toots", ((#file as NSString).lastPathComponent), #line, #function, toots.count, newToots.count)
|
||||
if newToots.isEmpty {
|
||||
stateMachine.enter(Fail.self)
|
||||
viewModel.homeTimelineNavigationBarState.newTopContent.value = false
|
||||
} else {
|
||||
stateMachine.enter(Success.self)
|
||||
viewModel.homeTimelineNavigationBarState.newTopContent.value = true
|
||||
}
|
||||
}
|
||||
.store(in: &viewModel.disposeBag)
|
||||
|
|
Loading…
Reference in New Issue