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
mobile: cleanup
ammarahm-ed16b00d21a6e0
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.tsindex b3f27c9ad..996545add 100644--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts@@ -76,8 +76,7 @@ export const useEditor = (const saveCount = useRef(0);const lastContentChangeTime = useRef<number>(0);const lock = useRef(false);- const attachedImages = useRef<{ [name: string]: any }>({});- const loadedImages = useRef<{ [name: string]: any }>({});+ const loadedImages = useRef<{ [name: string]: boolean }>({});const postMessage = useCallback(async <T>(type: string, data: T) =>@@ -156,8 +155,7 @@ export const useEditor = (async (resetState = true) => {currentNote.current?.id && db.fs.cancel(currentNote.current.id);currentNote.current = null;- attachedImages.current = [];- loadedImages.current = [];+ loadedImages.current = {};currentContent.current = null;clearTimeout(timers.current["loading-images"]);sessionHistoryId.current = undefined;