Skip to content

Commit

Permalink
fix: Stop using scenePhase for refreshCacheData (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon committed Feb 28, 2024
2 parents 094a4b5 + 85f53bd commit aa52d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mail/UserAccountScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ struct UserAccountScene: Scene {
We have to listen to `UIScene.willEnterForegroundNotification` to increase the `appLaunchCounter`
only when the app enters foreground. */
appLaunchCounter.increase()
refreshCacheData()
}
.onChange(of: scenePhase) { newScenePhase in
switch newScenePhase {
case .active:
refreshCacheData()
rootViewState.transitionToLockViewIfNeeded()
checkAppVersion()
UserDefaults.shared.openingUntilReview -= 1
Expand Down

0 comments on commit aa52d1c

Please sign in to comment.