Fixes #942 - Tapping home button or Pull to Refresh does not reload (#960)

This commit is contained in:
Marcus Kida 2023-03-01 16:41:20 +01:00 committed by GitHub
parent 44f366083c
commit 2b805872cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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