Fix bug in uploading local files
This commit is contained in:
parent
7b60fd961c
commit
0dbc09670d
1 changed files with 4 additions and 6 deletions
|
@ -257,12 +257,10 @@ class RemoteSyncService {
|
|||
}
|
||||
// prefer existing collection ID for manually uploaded files.
|
||||
// See https://github.com/ente-io/frame/pull/187
|
||||
final collectionID =
|
||||
(file.collectionID != null || file.collectionID != -1)
|
||||
? file.collectionID
|
||||
: (await CollectionsService.instance
|
||||
.getOrCreateForPath(file.deviceFolder))
|
||||
.id;
|
||||
final collectionID = file.collectionID ??
|
||||
(await CollectionsService.instance
|
||||
.getOrCreateForPath(file.deviceFolder))
|
||||
.id;
|
||||
_uploadFile(file, collectionID, futures);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue