Close chat faster on send
This commit is contained in:
parent
10b84d1521
commit
a40dd74b96
|
@ -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);
|
||||
},
|
||||
),
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user