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,