fix(mobile): streamline error handling for live photo saving (#27337)
parent
5889c42eb6
commit
a277c6311f
|
|
@ -109,7 +109,7 @@ class DownloadService {
|
|||
return result != null;
|
||||
} on PlatformException catch (error, stack) {
|
||||
// Handle saving MotionPhotos on iOS
|
||||
if (error.code == 'PHPhotosErrorDomain (-1)') {
|
||||
if (error.code.startsWith('PHPhotosErrorDomain')) {
|
||||
final result = await _fileMediaRepository.saveImageWithFile(imageFilePath, title: task.filename);
|
||||
return result != null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue