From cf4ce36480713bc3b9e4f6f8dcee7a44ce819fab Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Fri, 8 Jul 2022 18:23:20 +0500 Subject: [PATCH] fix: disable local only mode for logged out users --- apps/mobile/src/utils/hooks/useActions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } },