Close chat faster on send

This commit is contained in:
2023-12-30 12:49:14 +13:00
parent 10b84d1521
commit a40dd74b96
+1 -2
View File
@@ -89,9 +89,8 @@ class _RoomPageState extends State<RoomPage> {
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);
},
),
];