Skip to content

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

mobile: disable save when ignoreEdit is true

Ammar Ahmed63eb42eb9e6a
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.ts
index e19ff5ea4..830331751 100644
--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts
+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts
@@ -949,6 +949,7 @@ export const useEditor = (
`saveContent... title: ${!!title}, content: ${!!content}, noteId: ${noteId}`
);
if (
+ ignoreEdit ||
lock.current ||
(currentLoadingNoteId.current &&
currentLoadingNoteId.current === noteId)
@@ -957,6 +958,7 @@ export const useEditor = (
lock.current: ${lock.current}
currentLoadingNoteId.current: ${currentLoadingNoteId.current}
+ ignoreEdit: ${ignoreEdit}
`);
if (lock.current) {
setTimeout(() => {