diff --git a/lib/services/remote_sync_service.dart b/lib/services/remote_sync_service.dart index e1f5b3235..0f8c8ed78 100644 --- a/lib/services/remote_sync_service.dart +++ b/lib/services/remote_sync_service.dart @@ -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); } diff --git a/pubspec.yaml b/pubspec.yaml index 4e7ea3c9d..af358bf50 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"