Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: disable local only mode for logged out users

Ammar Ahmedcf4ce3648071
diff --git a/apps/mobile/src/utils/hooks/useActions.js b/apps/mobile/src/utils/hooks/useActions.js
index 33f806d7e..9b6b79bd2 100644
--- a/apps/mobile/src/utils/hooks/useActions.js
+++ b/apps/mobile/src/utils/hooks/useActions.js
@@ -514,7 +514,7 @@ export const useActions = ({ close = () => {}, item }) => {
}
async function toggleLocalOnly() {
- if (!checkNoteSynced()) return;
+ if (!checkNoteSynced() || !user) return;
db.notes.note(item.id).localOnly();
Navigation.queueRoutesForUpdate(
'TaggedNotes',
@@ -569,7 +569,7 @@ export const useActions = ({ close = () => {}, item }) => {
icon: 'plus',
func: async () => {
close();
- await sleep(300);
+ await sleep(500);
MoveNotes.present(db.notebooks.notebook(item.notebookId).data, item);
}
},