π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Complete completer with error if getThumbnailFromLocal throws error for task in local thumbnail task queue
ashilknc03eaf83aa80
diff --git a/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dartindex 05bf9a6e1b..f16d62c37c 100644--- a/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart@@ -438,11 +438,16 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {}await relevantTaskQueue.addTask(_localThumbnailQueueTaskId!, () async {- final thumbnailBytes = await getThumbnailFromLocal(- widget.file,- size: widget.thumbnailSize,- );- completer.complete(thumbnailBytes);+ late final Uint8List? thumbnailBytes;+ try {+ thumbnailBytes = await getThumbnailFromLocal(+ widget.file,+ size: widget.thumbnailSize,+ );+ completer.complete(thumbnailBytes);+ } catch (e) {+ completer.completeError(e);+ }});return completer.future;