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 syncing from note menu
ammarahm-edaa814fcec65d
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex 16d23ee3a..3723aa1f5 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -595,20 +595,23 @@ export const ActionSheetComponent = ({);return;}- if (user?.lastSynced < note?.dateEdited) {+ if (user?.lastSynced < note?.dateEdited || !user.lastSynced) {setRefreshing(true);try {- let user = await db.user.get();- dispatch({type: Actions.USER, user: user});await db.sync();localRefresh();ToastEvent.show('Note synced', 'success', 'local');} catch (e) {ToastEvent.show(e.message, 'error', 'local');} finally {+ let user = await db.user.get();+ dispatch({type: Actions.USER, user: user});+ dispatch({type: Actions.ALL});setRefreshing(false);}- dispatch({type: Actions.ALL});++ } else {+ console.log('here',user?.lastSynced,user?.lastSynced < note?.dateEdited)}};