Skip to content

Commit

Permalink
Fixed issue with filename is blank on iOS causing update to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 committed Aug 18, 2022
1 parent 4805d86 commit 25338ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions mobile/lib/modules/backup/services/backup.service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ class BackupService {
}

if (file != null) {
String originalFileName =
entity.title != null ? entity.title! : await entity.titleAsync;
String originalFileName = await entity.titleAsync;
String fileNameWithoutPath =
originalFileName.toString().split(".")[0];
var fileExtension = p.extension(file.path);
Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/modules/backup/ui/album_info_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class AlbumInfoCard extends HookConsumerWidget {
return;
}

if (albumInfo.id == 'isAll') {
if (albumInfo.id == 'isAll' || albumInfo.name == 'Recents') {
ImmichToast.show(
context: context,
msg: 'Cannot exclude album contains all assets',
Expand Down

0 comments on commit 25338ce

Please sign in to comment.