1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-26 10:50:29 +02:00

Fixed issue with filename is blank on iOS causing update to fail

This commit is contained in:
Alex 2022-08-18 16:27:08 -05:00
parent 4805d86a7c
commit 25338ce02f
No known key found for this signature in database
GPG Key ID: 53CD082B3A5E1082
2 changed files with 2 additions and 3 deletions

View File

@ -196,8 +196,7 @@ class BackupService {
} }
if (file != null) { if (file != null) {
String originalFileName = String originalFileName = await entity.titleAsync;
entity.title != null ? entity.title! : await entity.titleAsync;
String fileNameWithoutPath = String fileNameWithoutPath =
originalFileName.toString().split(".")[0]; originalFileName.toString().split(".")[0];
var fileExtension = p.extension(file.path); var fileExtension = p.extension(file.path);

View File

@ -123,7 +123,7 @@ class AlbumInfoCard extends HookConsumerWidget {
return; return;
} }
if (albumInfo.id == 'isAll') { if (albumInfo.id == 'isAll' || albumInfo.name == 'Recents') {
ImmichToast.show( ImmichToast.show(
context: context, context: context,
msg: 'Cannot exclude album contains all assets', msg: 'Cannot exclude album contains all assets',