π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
made location non nullable in service method used for bulk editing location
ashilkna11a3af31707
diff --git a/lib/services/files_service.dart b/lib/services/files_service.dartindex 61b63c12fb..efef5c33c7 100644--- a/lib/services/files_service.dart+++ b/lib/services/files_service.dart@@ -93,7 +93,7 @@ class FilesService {Future<void> bulkEditLocationData(List<EnteFile> files,- LatLng? location,+ LatLng location,BuildContext context,) async {final List<EnteFile> uploadedFiles =@@ -138,7 +138,7 @@ class FilesService {List<EnteFile> uploadedFiles,Map<int, Map<String, dynamic>> fileIDToUpdateMetadata,List<EnteFile> remoteFilesToUpdate,- LatLng? location,+ LatLng location,) async {for (EnteFile remoteFile in uploadedFiles) {// discard files not owned by user and also dedupe already processed@@ -150,8 +150,8 @@ class FilesService {remoteFilesToUpdate.add(remoteFile);fileIDToUpdateMetadata[remoteFile.uploadedFileID!] = {- latKey: location?.latitude,- longKey: location?.longitude,+ latKey: location.latitude,+ longKey: location.longitude,};}diff --git a/lib/ui/viewer/location/update_location_data_widget.dart b/lib/ui/viewer/location/update_location_data_widget.dartindex cab993e3a8..b7b5c0b999 100644--- a/lib/ui/viewer/location/update_location_data_widget.dart+++ b/lib/ui/viewer/location/update_location_data_widget.dart@@ -173,7 +173,7 @@ class _UpdateLocationDataWidgetState extends State<UpdateLocationDataWidget> {}await FilesService.instance.bulkEditLocationData(widget.files,- selectedLocation.value,+ selectedLocation.value!,context,);Navigator.of(context).pop();