From 4488520f065fa851ec4a6023b15baa3364a4592d Mon Sep 17 00:00:00 2001 From: Alan Diwix Date: Thu, 13 May 2021 10:48:05 +0000 Subject: [PATCH] fix: Android input after sending message --- lib/views/chat.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;