Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Add type error diagnostics

Neeraj Gupta39572ec9c063
diff --git a/mobile/apps/photos/lib/services/collections_service.dart b/mobile/apps/photos/lib/services/collections_service.dart
index e0c3e776eb..2d01a1255a 100644
--- a/mobile/apps/photos/lib/services/collections_service.dart
+++ b/mobile/apps/photos/lib/services/collections_service.dart
@@ -474,6 +474,8 @@ class CollectionsService {
}
final int? userID = _config.getUserID();
if (userID == null) {
+ _logger
+ .info("Skipping collections for UI because user ID is unavailable");
return <Collection>[];
}
return _collectionIDToCollections.values
diff --git a/mobile/apps/photos/lib/ui/tabs/home_widget.dart b/mobile/apps/photos/lib/ui/tabs/home_widget.dart
index 8664c5c4c1..354e933c2e 100644
--- a/mobile/apps/photos/lib/ui/tabs/home_widget.dart
+++ b/mobile/apps/photos/lib/ui/tabs/home_widget.dart
@@ -1081,6 +1081,7 @@ class _HomeWidgetState extends State<HomeWidget> {
}
final ott = link.queryParameters["ott"];
if (ott == null || ott.isEmpty) {
+ _logger.info("Ignoring auth deep link without ott parameter");
return;
}
UserService.instance.verifyEmail(context, ott);
diff --git a/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart
index 3762f80032..daac4fab55 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart
@@ -428,6 +428,9 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
Future<Uint8List?> _getLocalThumbnailUsingHeapPriorityQueue() async {
final localID = widget.file.localID;
if (localID == null) {
+ _logger.info(
+ "Skipping local thumbnail load because localID is unavailable for ${widget.file.tag}",
+ );
return null;
}