Skip to content

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

core: do not trigger autosync on attachment upload

Abdullah Atta46f7ec5e0086
diff --git a/packages/core/src/api/sync/auto-sync.js b/packages/core/src/api/sync/auto-sync.js
index 29b470870..ccb0fedf1 100644
--- a/packages/core/src/api/sync/auto-sync.js
+++ b/packages/core/src/api/sync/auto-sync.js
@@ -59,7 +59,11 @@ export class AutoSync {
* @private
*/
schedule(id, item) {
- if (item && (item.remote || item.localOnly || item.failed)) return;
+ if (
+ item &&
+ (item.remote || item.localOnly || item.failed || !!item.dateUploaded)
+ )
+ return;
clearTimeout(this.timeout);
// auto sync interval must not be 0 to avoid issues