Skip to content

High performance self-hosted photo and video management solution.

chore(mobile): patch download > includeEmbeddedVideos user preferences (#11910)

Alexe457d8d62eb1
diff --git a/mobile/lib/providers/authentication.provider.dart b/mobile/lib/providers/authentication.provider.dart
index 5846bb78cc..5d3ae5bc22 100644
--- a/mobile/lib/providers/authentication.provider.dart
+++ b/mobile/lib/providers/authentication.provider.dart
@@ -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
diff --git a/mobile/lib/utils/openapi_patching.dart b/mobile/lib/utils/openapi_patching.dart
index 7b27f59aee..7a2f7396eb 100644
--- a/mobile/lib/utils/openapi_patching.dart
+++ b/mobile/lib/utils/openapi_patching.dart
@@ -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;
}
}