A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: cache password when restoring backup
Ammar Ahmed05b12df7d716
diff --git a/apps/mobile/app/screens/settings/restore-backup/index.tsx b/apps/mobile/app/screens/settings/restore-backup/index.tsxindex 696351ec8..ce3c44521 100644--- a/apps/mobile/app/screens/settings/restore-backup/index.tsx+++ b/apps/mobile/app/screens/settings/restore-backup/index.tsx@@ -148,7 +148,7 @@ const restoreBackup = async (options: {let count = 0;await db.transaction(async () => {- let passwordOrKey: PasswordOrKey;+ let passwordOrKey: PasswordOrKey | undefined = undefined;for (const path of extractedBackupFiles) {if (path === ".nnbackup" || path === "attachments") continue;@@ -166,7 +166,7 @@ const restoreBackup = async (options: {passwordOrKey = !isEncryptedBackup? ({} as PasswordOrKey)- : await withPassword();+ : passwordOrKey || (await withPassword());if (isEncryptedBackup &&