Merge branch 'main' into 'main'

fix: Android input after sending message

Closes #405

See merge request famedly/fluffychat!413
This commit is contained in:
Krille Fear 2021-05-13 10:48:05 +00:00
commit e4af5ddeef
1 changed files with 4 additions and 1 deletions

View File

@ -202,7 +202,10 @@ class ChatController extends State<Chat> {
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;