From 7c01611859955290f8709d0b62570acbd31b58df Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 20 Jun 2026 23:39:05 -0400 Subject: [PATCH 1/3] Default to 1:1 when no width/height are given for an image --- lib/widgets/message_image.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/message_image.dart b/lib/widgets/message_image.dart index 8865a5c..f4df997 100644 --- a/lib/widgets/message_image.dart +++ b/lib/widgets/message_image.dart @@ -19,7 +19,7 @@ class MessageImage extends ConsumerWidget { child: ClipRRect( borderRadius: .all(.circular(8)), child: AspectRatio( - aspectRatio: info!.width! / info!.height!, + aspectRatio: info?.width ?? 1 / (info?.height ?? 1), child: Image( image: CachedNetworkImage( url.toString(), From db5735e9e24c8f7089b5aa1c7c5fefb2305a5c52 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 20 Jun 2026 23:48:15 -0400 Subject: [PATCH 2/3] Fixup aspect ratio calculation for non-null widths --- lib/widgets/message_image.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/message_image.dart b/lib/widgets/message_image.dart index f4df997..654ac27 100644 --- a/lib/widgets/message_image.dart +++ b/lib/widgets/message_image.dart @@ -19,7 +19,7 @@ class MessageImage extends ConsumerWidget { child: ClipRRect( borderRadius: .all(.circular(8)), child: AspectRatio( - aspectRatio: info?.width ?? 1 / (info?.height ?? 1), + aspectRatio: (info?.width ?? 1) / (info?.height ?? 1), child: Image( image: CachedNetworkImage( url.toString(), From b727d0342da7bfbe7998b763e4e77b2034671819 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sun, 21 Jun 2026 17:52:05 -0400 Subject: [PATCH 3/3] bump gomuks --- gomuks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gomuks b/gomuks index 819f5d6..23638a8 160000 --- a/gomuks +++ b/gomuks @@ -1 +1 @@ -Subproject commit 819f5d69f068ddedb08fe732f50570e33dd19e0f +Subproject commit 23638a8d2b5ad7ed9f72a0ec39f56cac119c45fb