Disable animations when tapping on a notifications while the app is backgrounded (#808)

* tapping on notifications will display the animation only if the app is active and foregrounded

* changelog
This commit is contained in:
Mauro
2023-04-18 15:08:39 +02:00
committed by GitHub
parent 9fe69acd20
commit debdd08fc1
4 changed files with 32 additions and 27 deletions
@@ -267,7 +267,7 @@ class AppCoordinator: AppCoordinatorProtocol {
navigationRootCoordinator.setRootCoordinator(navigationSplitCoordinator)
if let storedAppRoute {
userSessionFlowCoordinator.handleAppRoute(storedAppRoute)
userSessionFlowCoordinator.handleAppRoute(storedAppRoute, animated: false)
}
}
@@ -441,7 +441,7 @@ class AppCoordinator: AppCoordinatorProtocol {
private func handleAppRoute(_ appRoute: AppRoute) {
if let userSessionFlowCoordinator {
userSessionFlowCoordinator.handleAppRoute(appRoute)
userSessionFlowCoordinator.handleAppRoute(appRoute, animated: UIApplication.shared.applicationState == .active)
} else {
storedAppRoute = appRoute
}