From 4d4a5b6be4e00225c756c87ac34a1216eeaca8f2 Mon Sep 17 00:00:00 2001 From: mertalev <101130780+mertalev@users.noreply.github.com> Date: Mon, 21 Jul 2025 13:29:50 +0300 Subject: [PATCH] await in try/catch --- mobile/lib/presentation/widgets/images/thumbnail.widget.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/presentation/widgets/images/thumbnail.widget.dart b/mobile/lib/presentation/widgets/images/thumbnail.widget.dart index a3940b4713..0a43730826 100644 --- a/mobile/lib/presentation/widgets/images/thumbnail.widget.dart +++ b/mobile/lib/presentation/widgets/images/thumbnail.widget.dart @@ -260,7 +260,7 @@ class _ThumbnailState extends State { log.info( 'Retrieved local image $localId in ${stopwatch.elapsedMilliseconds.toStringAsFixed(2)} ms', ); - return ImmutableBuffer.fromUint8List(pointer.asTypedList(size)); + return await ImmutableBuffer.fromUint8List(pointer.asTypedList(size)); } catch (e) { log.warning('Failed to retrieve local image $localId: $e'); } finally {