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
web: ensure that images get downloaded on realtime sync
Abdullah Atta24c899e7093e
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsxindex cdd7759fb..1d4ae33cb 100644--- a/apps/web/src/components/editor/index.tsx+++ b/apps/web/src/components/editor/index.tsx@@ -119,13 +119,17 @@ export default function EditorManager({editorInstance.current?.updateContent(item.data as string);- db.eventManager.subscribe(- EVENTS.syncCompleted,- async () => {- await db.attachments?.downloadMedia(id);- },- true- );+ if (appstore.get().isSyncing()) {+ db.eventManager.subscribe(+ EVENTS.syncCompleted,+ async () => {+ await db.attachments?.downloadMedia(id);+ },+ true+ );+ } else {+ await db.attachments?.downloadMedia(id);+ }} else if (isNote) {if (!locked && item.locked) return EV.publish(EVENTS.vaultLocked);