File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -176,10 +176,13 @@ class ImmichAppState extends ConsumerState<ImmichApp>
176
176
final deepLinkHandler = ref.read (deepLinkServiceProvider);
177
177
final currentRouteName = ref.read (currentRouteNameProvider.notifier).state;
178
178
179
+ final isColdStart =
180
+ currentRouteName == null || currentRouteName == SplashScreenRoute .name;
181
+
179
182
if (deepLink.uri.scheme == "immich" ) {
180
183
final proposedRoute = await deepLinkHandler.handleScheme (
181
184
deepLink,
182
- currentRouteName == SplashScreenRoute .name ,
185
+ isColdStart ,
183
186
);
184
187
185
188
return proposedRoute;
@@ -188,7 +191,7 @@ class ImmichAppState extends ConsumerState<ImmichApp>
188
191
if (deepLink.uri.host == "my.immich.app" ) {
189
192
final proposedRoute = await deepLinkHandler.handleMyImmichApp (
190
193
deepLink,
191
- currentRouteName == SplashScreenRoute .name ,
194
+ isColdStart ,
192
195
);
193
196
194
197
return proposedRoute;
You can’t perform that action at this time.
0 commit comments