mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
core: do not sync vault key alone
this caused a sync loop because vault key is always synced regardless of whether it has changed or not.
This commit is contained in:
@@ -267,13 +267,14 @@ class Sync {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {{ items: any[]; vaultKey: any; }} data
|
||||
* @param {{ items: any[]; vaultKey: any; types: string[]; }} data
|
||||
* @param {number} lastSynced
|
||||
* @returns {Promise<boolean>}
|
||||
*/
|
||||
async send(data, lastSynced) {
|
||||
await this.uploadAttachments();
|
||||
|
||||
if (data.types.length === 1 && data.types[0] === "vaultKey") return false;
|
||||
if (data.items.length <= 0) return false;
|
||||
|
||||
let total = data.items.length;
|
||||
|
||||
Reference in New Issue
Block a user