Remove isNewFile
This commit is contained in:
parent
d8b6ec5b77
commit
ce995cdc33
1 changed files with 18 additions and 61 deletions
|
|
@ -703,8 +703,7 @@ export class Syncer {
|
|||
if (response.isDeleted) {
|
||||
await this.processRemoteDelete(record.localPath, {
|
||||
...response,
|
||||
contentSize: 0,
|
||||
isNewFile: false
|
||||
contentSize: 0
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
@ -859,14 +858,6 @@ export class Syncer {
|
|||
return this.processRemoteUpdate(trackedRecord, remoteVersion);
|
||||
}
|
||||
|
||||
if (!remoteVersion.isNewFile) {
|
||||
this.queue.lastSeenUpdateId = remoteVersion.vaultUpdateId;
|
||||
this.logger.debug(
|
||||
`Ignoring stale RemoteChange for untracked, non-new document ${remoteVersion.documentId}`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
return this.processRemoteCreateForNewDocument(remoteVersion);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue