mobile: only show migration progress for main db

This commit is contained in:
Abdullah Atta
2024-11-19 17:01:44 +05:00
parent 228a8e612f
commit 0f84fab810

View File

@@ -578,7 +578,8 @@ export const useAppEvents = () => {
EV.subscribe(EVENTS.uploadCanceled, (data) => {
useAttachmentStore.getState().setUploading(data);
}),
EV.subscribe(EVENTS.migrationStarted, () => {
EV.subscribe(EVENTS.migrationStarted, (name) => {
if (name !== "notesnook") return;
startProgress({
title: "Migrating Data",
paragraph: "Please wait while we migrate your data",
@@ -586,7 +587,8 @@ export const useAppEvents = () => {
fillBackground: true
});
}),
EV.subscribe(EVENTS.migrationFinished, () => {
EV.subscribe(EVENTS.migrationFinished, (name) => {
if (name !== "notesnook") return;
endProgress();
}),
EV.subscribe(EVENTS.vaultLocked, async () => {