From 3012bebe934eab8e9640e131199a468573ebec88 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Thu, 8 Jan 2026 21:00:38 -0500 Subject: [PATCH] trim text before checking if empty --- lib/widgets/chat_page/chat_box.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/chat_page/chat_box.dart b/lib/widgets/chat_page/chat_box.dart index 3497ce9..8fd5acb 100644 --- a/lib/widgets/chat_page/chat_box.dart +++ b/lib/widgets/chat_page/chat_box.dart @@ -45,7 +45,7 @@ class ChatBox extends HookConsumerWidget { } void send() { - if (controller.value.text.isEmpty) return; + if (controller.value.text.trim().isEmpty) return; ref .watch(RoomChatController.provider(room).notifier) .send(