Fix #4528 - Prevent the OnboardingFlowCoordinator from interfering with recovery setup.

This commit is contained in:
Stefan Ceriu
2025-09-30 12:33:00 +03:00
committed by Stefan Ceriu
parent 889f5c570d
commit 8b7b1b5a37
@@ -23,7 +23,7 @@ class OnboardingFlowCoordinator: FlowCoordinatorProtocol {
private let notificationManager: NotificationManagerProtocol private let notificationManager: NotificationManagerProtocol
private let userIndicatorController: UserIndicatorControllerProtocol private let userIndicatorController: UserIndicatorControllerProtocol
private let windowManager: WindowManagerProtocol private let windowManager: WindowManagerProtocol
private let isNewLogin: Bool private var isNewLogin: Bool
private var navigationStackCoordinator: NavigationStackCoordinator! private var navigationStackCoordinator: NavigationStackCoordinator!
@@ -219,6 +219,7 @@ class OnboardingFlowCoordinator: FlowCoordinatorProtocol {
case (_, _, .notificationPermissions): case (_, _, .notificationPermissions):
presentNotificationPermissionsScreen() presentNotificationPermissionsScreen()
case (_, _, .finished): case (_, _, .finished):
isNewLogin = false
actionsSubject.send(.dismiss) actionsSubject.send(.dismiss)
stateMachine.tryState(.initial) stateMachine.tryState(.initial)
case (.finished, _, .initial): case (.finished, _, .initial):