Skip to content

Commit

Permalink
mobile: do not show migration on first launch
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Nov 19, 2024
1 parent 9c28e6b commit e7f67d1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions apps/mobile/app/hooks/use-app-events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 () => {
Expand Down

0 comments on commit e7f67d1

Please sign in to comment.