mirror of
https://github.com/immich-app/immich.git
synced 2025-07-31 15:08:44 -04:00
fix: cold start deep link logic (#19859)
This commit is contained in:
parent
55fe67dd20
commit
d178c52ba6
@ -176,10 +176,13 @@ class ImmichAppState extends ConsumerState<ImmichApp>
|
|||||||
final deepLinkHandler = ref.read(deepLinkServiceProvider);
|
final deepLinkHandler = ref.read(deepLinkServiceProvider);
|
||||||
final currentRouteName = ref.read(currentRouteNameProvider.notifier).state;
|
final currentRouteName = ref.read(currentRouteNameProvider.notifier).state;
|
||||||
|
|
||||||
|
final isColdStart =
|
||||||
|
currentRouteName == null || currentRouteName == SplashScreenRoute.name;
|
||||||
|
|
||||||
if (deepLink.uri.scheme == "immich") {
|
if (deepLink.uri.scheme == "immich") {
|
||||||
final proposedRoute = await deepLinkHandler.handleScheme(
|
final proposedRoute = await deepLinkHandler.handleScheme(
|
||||||
deepLink,
|
deepLink,
|
||||||
currentRouteName == SplashScreenRoute.name,
|
isColdStart,
|
||||||
);
|
);
|
||||||
|
|
||||||
return proposedRoute;
|
return proposedRoute;
|
||||||
@ -188,7 +191,7 @@ class ImmichAppState extends ConsumerState<ImmichApp>
|
|||||||
if (deepLink.uri.host == "my.immich.app") {
|
if (deepLink.uri.host == "my.immich.app") {
|
||||||
final proposedRoute = await deepLinkHandler.handleMyImmichApp(
|
final proposedRoute = await deepLinkHandler.handleMyImmichApp(
|
||||||
deepLink,
|
deepLink,
|
||||||
currentRouteName == SplashScreenRoute.name,
|
isColdStart,
|
||||||
);
|
);
|
||||||
|
|
||||||
return proposedRoute;
|
return proposedRoute;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user