Merge pull request #189 from ente-io/hot_fix

Fix critical bug in uploading local files
This commit is contained in:
Vishnu Mohandas 2022-02-14 23:00:55 +05:30 committed by GitHub
commit 27f90240f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View file

@ -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);
}

View file

@ -11,7 +11,7 @@ description: ente photos application
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.5.4+283
version: 0.5.5+284
environment:
sdk: ">=2.10.0 <3.0.0"