Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: do not show migration on first launch

Ammar Ahmede7f67d1bb9bb
diff --git a/apps/mobile/app/hooks/use-app-events.tsx b/apps/mobile/app/hooks/use-app-events.tsx
index 83535bcd6..dd658ffe4 100644
--- a/apps/mobile/app/hooks/use-app-events.tsx
+++ b/apps/mobile/app/hooks/use-app-events.tsx
@@ -579,7 +579,11 @@ export const useAppEvents = () => {
useAttachmentStore.getState().setUploading(data);
}),
EV.subscribe(EVENTS.migrationStarted, (name) => {
- if (name !== "notesnook") return;
+ if (
+ name !== "notesnook" ||
+ !SettingsService.getProperty("introCompleted")
+ )
+ return;
startProgress({
title: "Migrating Data",
paragraph: "Please wait while we migrate your data",
@@ -588,7 +592,11 @@ export const useAppEvents = () => {
});
}),
EV.subscribe(EVENTS.migrationFinished, (name) => {
- if (name !== "notesnook") return;
+ if (
+ name !== "notesnook" ||
+ !SettingsService.getProperty("introCompleted")
+ )
+ return;
endProgress();
}),
EV.subscribe(EVENTS.vaultLocked, async () => {