Fix critical bug in syncing folder

This commit is contained in:
Neeraj Gupta 2022-11-22 21:04:10 +05:30
parent 0002ce2520
commit af45eacd1f
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -279,10 +279,14 @@ class RemoteSyncService {
localIDsToSync.removeAll(alreadyClaimedLocalIDs);
}
if (localIDsToSync.isEmpty || deviceCollection.collectionID == -1) {
if (localIDsToSync.isEmpty) {
continue;
}
await _createCollectionForDevicePath(deviceCollection);
if (deviceCollection.collectionID == -1) {
_logger.finest('DeviceCollection should not be -1 here');
continue;
}
moreFilesMarkedForBackup = true;
await _db.setCollectionIDForUnMappedLocalFiles(