diff --git a/lib/views/chat.dart b/lib/views/chat.dart index 2d8e1e9b..ff795441 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -202,7 +202,10 @@ class ChatController extends State { if (sendController.text.trim().isEmpty) return; room.sendTextEvent(sendController.text, inReplyTo: replyEvent, editEventId: editEvent?.eventId); - sendController.text = pendingText; + sendController.value = TextEditingValue( + text: pendingText, + selection: TextSelection.collapsed(offset: 0), + ); setState(() { inputText = pendingText;