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() {
|
void send() {
|
||||||
if (controller.value.text.isEmpty) return;
|
if (controller.value.text.trim().isEmpty) return;
|
||||||
ref
|
ref
|
||||||
.watch(RoomChatController.provider(room).notifier)
|
.watch(RoomChatController.provider(room).notifier)
|
||||||
.send(
|
.send(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue