chore: remove newPostsView when load gap toots

This commit is contained in:
sunxiaojian 2021-03-16 15:54:03 +08:00
parent f7b4b5993a
commit 12e2c5f0d5
1 changed files with 0 additions and 2 deletions

View File

@ -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)