diff --git a/lib/views/chat.dart b/lib/views/chat.dart index 7d1bb122c..689a21df4 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -195,7 +195,7 @@ class _ChatState extends State { TextEditingController sendController = TextEditingController(); void send() { - if (sendController.text.isEmpty) return; + if (sendController.text.trim().isEmpty) return; room.sendTextEvent(sendController.text, inReplyTo: replyEvent, editEventId: editEvent?.eventId); sendController.text = pendingText;