mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: resolve if device synced
This commit is contained in:
@@ -161,7 +161,11 @@ class Sync {
|
||||
this.connection.stream("FetchItems", lastSynced).subscribe({
|
||||
next: (/** @type {SyncTransferItem} */ syncStatus) => {
|
||||
const { total, item, synced, lastSynced } = syncStatus;
|
||||
if (synced || !item) return;
|
||||
if (synced) {
|
||||
resolve({ synced, lastSynced });
|
||||
return;
|
||||
}
|
||||
if (!item) return;
|
||||
|
||||
++counter.count;
|
||||
++counter.queue;
|
||||
|
||||
Reference in New Issue
Block a user