Merge branch 'main' into 'main'
fix: Android input after sending message Closes #405 See merge request famedly/fluffychat!413
This commit is contained in:
commit
66413a86d3
1 changed files with 4 additions and 1 deletions
|
|
@ -202,7 +202,10 @@ class ChatController extends State<Chat> {
|
||||||
if (sendController.text.trim().isEmpty) return;
|
if (sendController.text.trim().isEmpty) return;
|
||||||
room.sendTextEvent(sendController.text,
|
room.sendTextEvent(sendController.text,
|
||||||
inReplyTo: replyEvent, editEventId: editEvent?.eventId);
|
inReplyTo: replyEvent, editEventId: editEvent?.eventId);
|
||||||
sendController.text = pendingText;
|
sendController.value = TextEditingValue(
|
||||||
|
text: pendingText,
|
||||||
|
selection: TextSelection.collapsed(offset: 0),
|
||||||
|
);
|
||||||
|
|
||||||
setState(() {
|
setState(() {
|
||||||
inputText = pendingText;
|
inputText = pendingText;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue