From 1f30e2d97ffc6eb9889d5e0c59ea7d6deef6363e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= <elias@elias-mueller.com> Date: Fri, 10 May 2024 22:29:40 +0200 Subject: [PATCH] not replyable messages are no longer swipable --- lib/view/pages/talk/components/chatBubble.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/view/pages/talk/components/chatBubble.dart b/lib/view/pages/talk/components/chatBubble.dart index 997185e..4ee74e0 100644 --- a/lib/view/pages/talk/components/chatBubble.dart +++ b/lib/view/pages/talk/components/chatBubble.dart @@ -269,6 +269,7 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM _dragStartPosition = _position; }, onHorizontalDragUpdate: (details) { + if(!widget.bubbleData.isReplyable) return; var dx = details.delta.dx - _dragStartPosition.dx; setState(() { _position = _position.dx.abs() > 30 ? Offset(_position.dx, 0) : Offset(_position.dx + dx, 0);