Skip to content

Commit

Permalink
chore(mobile): patch download > includeEmbeddedVideos user preferences (
Browse files Browse the repository at this point in the history
immich-app#11910)

* chore(mobile): patch download > includeEmbeddedVideos user preferences

* correct patch
  • Loading branch information
alextran1502 authored Aug 25, 2024
1 parent b41af65 commit e457d8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mobile/lib/providers/authentication.provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ class AuthenticationNotifier extends StateNotifier<AuthenticationState> {
error,
stackTrace,
);
debugPrint(
"Error getting user information from the server [CATCH ALL] $error $stackTrace",
);
}

// If the user information is successfully retrieved, update the store
Expand Down
5 changes: 5 additions & 0 deletions mobile/lib/utils/openapi_patching.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ dynamic upgradeDto(dynamic value, String targetType) {
if (value['rating'] == null) {
value['rating'] = RatingResponse().toJson();
}

if (value['download']['includeEmbeddedVideos'] == null) {
value['download']['includeEmbeddedVideos'] = false;
}
}
break;
}
}

0 comments on commit e457d8d

Please sign in to comment.