Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Fix unlock page flow (#771)
Leendert de Borste0e7315d444c
diff --git a/apps/mobile-app/app/reinitialize.tsx b/apps/mobile-app/app/reinitialize.tsxindex 79413579b..4ef12041a 100644--- a/apps/mobile-app/app/reinitialize.tsx+++ b/apps/mobile-app/app/reinitialize.tsx@@ -98,6 +98,7 @@ export default function ReinitializeScreen() : React.ReactNode {return;}}+router.replace('/unlock');} catch {router.replace('/unlock');@@ -117,7 +118,7 @@ export default function ReinitializeScreen() : React.ReactNode {}// First perform vault sync- const syncSuccess = await syncVault({+ await syncVault({initialSync: true,/*** Handle the status update.@@ -163,10 +164,6 @@ export default function ReinitializeScreen() : React.ReactNode {);}});-- if (!syncSuccess) {- router.replace('/unlock');- }};initialize();diff --git a/apps/mobile-app/app/unlock.tsx b/apps/mobile-app/app/unlock.tsxindex a85c324bb..662da434b 100644--- a/apps/mobile-app/app/unlock.tsx+++ b/apps/mobile-app/app/unlock.tsx@@ -98,7 +98,7 @@ export default function UnlockScreen() : React.ReactNode {* Handle the face ID retry.*/const handleFaceIDRetry = async () : Promise<void> => {- router.replace('/');+ router.replace('/reinitialize');};const styles = StyleSheet.create({