mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: make beta timeline the default (#21751)
* chore: make beta timeline the default * fix: logic * awaiting * refactor
This commit is contained in:
parent
9a5a3c0a1d
commit
2c7b980eed
13 changed files with 468 additions and 413 deletions
|
|
@ -80,7 +80,16 @@ class SplashScreenPageState extends ConsumerState<SplashScreenPage> {
|
|||
return;
|
||||
}
|
||||
|
||||
// clean install - change the default of the flag
|
||||
// current install not using beta timeline
|
||||
if (context.router.current.name == SplashScreenRoute.name) {
|
||||
final needBetaMigration = Store.get(StoreKey.needBetaMigration, false);
|
||||
if (needBetaMigration) {
|
||||
await Store.put(StoreKey.needBetaMigration, false);
|
||||
context.router.replaceAll([ChangeExperienceRoute(switchingToBeta: true)]);
|
||||
return;
|
||||
}
|
||||
|
||||
context.replaceRoute(Store.isBetaTimelineEnabled ? const TabShellRoute() : const TabControllerRoute());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue