trim text before checking if empty
This commit is contained in:
parent
125c78d9d2
commit
3012bebe93
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue