mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user