From 9d0e19c56f18fc91fd6e129cfb52b3583136ed9b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 15 Jan 2025 15:14:13 +0800 Subject: [PATCH] :bug: Fix chat messages --- lib/widgets/chat/chat_message_input.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/chat/chat_message_input.dart b/lib/widgets/chat/chat_message_input.dart index 0565e1b..e56c76b 100644 --- a/lib/widgets/chat/chat_message_input.dart +++ b/lib/widgets/chat/chat_message_input.dart @@ -117,7 +117,7 @@ class ChatMessageInputState extends State { // Send the message // NOTICE This future should not be awaited, so that the message can be sent in the background and the user can continue to type widget.controller.sendMessage( - 'messages.new', + _editingMessage != null ? 'messages.edit' : 'messages.new', _contentController.text, attachments: _attachments.where((e) => e.attachment != null).map((e) => e.attachment!.rid).toList(), relatedId: _editingMessage?.id,