diff --git a/lib/pages/chat/events/image_bubble.dart b/lib/pages/chat/events/image_bubble.dart index ab5fb03c..ae8e7a83 100644 --- a/lib/pages/chat/events/image_bubble.dart +++ b/lib/pages/chat/events/image_bubble.dart @@ -52,8 +52,10 @@ class ImageBubble extends StatelessWidget { var height = 32; if (ratio > 1.0) { height = (width / ratio).round(); + if (height <= 0) height = 1; } else { width = (height * ratio).round(); + if (width <= 0) width = 1; } return SizedBox( width: this.width,