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
fix storage requested on app opened
ammarahm-edc3b007fbf722
diff --git a/apps/mobile/src/services/Backup.js b/apps/mobile/src/services/Backup.jsindex d57ce4483..e012f75f4 100644--- a/apps/mobile/src/services/Backup.js+++ b/apps/mobile/src/services/Backup.js@@ -49,7 +49,8 @@ async function getLastBackupDate() {async function checkBackupRequired(type) {let now = Date.now();let lastBackupDate = await getLastBackupDate();- if (lastBackupDate === 'never' || !lastBackupDate) {+ if (!lastBackupDate) return false;+ if (lastBackupDate === 'never') {return true;}lastBackupDate = parseInt(lastBackupDate);diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.jsindex 3d01a1369..290447b95 100755--- a/apps/mobile/src/views/Home/index.js+++ b/apps/mobile/src/views/Home/index.js@@ -12,7 +12,6 @@ import {scrollRef} from '../../utils';import {db} from '../../utils/DB';import {eOnLoadNote, eScrollEvent} from '../../utils/Events';import {tabBarRef} from '../../utils/Refs';-import Storage from '../../utils/storage';export const Home = ({route, navigation}) => {const [state, dispatch] = useTracked();@@ -85,7 +84,7 @@ export const Home = ({route, navigation}) => {});};- const _onPressBottomButton = async (event) => {+ const _onPressBottomButton = async () => {if (!DDS.isLargeTablet()) {tabBarRef.current?.goToPage(1);} else {