mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
mobile: do not show migration on first launch
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user