From a40dd74b96b2ee26e64c934812d53d9692415ef3 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Sat, 30 Dec 2023 12:49:14 +1300 Subject: [PATCH] Close chat faster on send --- lib/room.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/room.dart b/lib/room.dart index 2615e59..0f3baca 100644 --- a/lib/room.dart +++ b/lib/room.dart @@ -89,9 +89,8 @@ class _RoomPageState extends State { textInputAction: TextInputAction.send, decoration: const InputDecoration(hintText: 'Message'), onFieldSubmitted: (value) async { - print("Sending text event $value to room ${widget.room.id}..."); - await widget.room.sendTextEvent(value); chatController.text = ''; + await widget.room.sendTextEvent(value); }, ), ];