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(