Skip to content

Commit

Permalink
Fixes #942 - Tapping home button or Pull to Refresh does not reload (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kimar authored Mar 1, 2023
1 parent 44f3660 commit 2b80587
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extension HomeTimelineViewModel {
extension HomeTimelineViewModel.LoadLatestState {
class Initial: HomeTimelineViewModel.LoadLatestState {
override func isValidNextState(_ stateClass: AnyClass) -> Bool {
return stateClass == Loading.self
return stateClass == Loading.self || stateClass == LoadingManually.self
}
}

Expand Down Expand Up @@ -83,7 +83,7 @@ extension HomeTimelineViewModel.LoadLatestState {

class Idle: HomeTimelineViewModel.LoadLatestState {
override func isValidNextState(_ stateClass: AnyClass) -> Bool {
return stateClass == Loading.self
return stateClass == Loading.self || stateClass == LoadingManually.self
}
}

Expand Down

0 comments on commit 2b80587

Please sign in to comment.