Skip to content

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

mobile: download attachments in realtime sync

ammarahm-ed7c626aca187c
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.ts
index 3c584ba6f..a1d912db5 100644
--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts
+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts
@@ -410,7 +410,13 @@ export const useEditor = (
}
await commands.setStatus(timeConverter(note.dateEdited), "Saved");
}
-
+ db.eventManager.subscribe(
+ EVENTS.syncCompleted,
+ async () => {
+ loadImages();
+ },
+ true
+ );
lock.current = false;
},
[commands, postMessage, lockNoteWithVault]