Skip to content

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

always check for attachments

ammarahm-ed69bed520284f
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js
index 5bca64498..b6ceb1db5 100644
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@ -321,7 +321,7 @@ export const _onMessage = async evt => {
eSendEvent('editorScroll', message);
break;
case 'attachment_download':
- filesystem.downloadAttachment(message.value,true);
+ filesystem.downloadAttachment(message.value, true);
break;
case 'noteLoaded':
tiny.call(EditorWebView, tiny.notLoading);
@@ -735,9 +735,9 @@ const loadNoteInEditor = async (keepHistory = true) => {
);
} else {
post('html', content.data);
- if (id) {
- db.attachments.downloadImages(id);
- }
+ }
+ if (id) {
+ db.attachments.downloadImages(id);
}
setColors();