From 9e8ae73ff7a84dfe5850afc7ff863035b4a97574 Mon Sep 17 00:00:00 2001 From: fmodf Date: Mon, 19 Aug 2024 08:43:17 +0200 Subject: [PATCH] wip --- .../View/Main/Conversation/ConversationTextInput.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ConversationsClassic/View/Main/Conversation/ConversationTextInput.swift b/ConversationsClassic/View/Main/Conversation/ConversationTextInput.swift index e8691f8..681ff27 100644 --- a/ConversationsClassic/View/Main/Conversation/ConversationTextInput.swift +++ b/ConversationsClassic/View/Main/Conversation/ConversationTextInput.swift @@ -57,7 +57,7 @@ struct ConversationTextInput: View { .environmentObject(attachments) } } - TextField("", text: $messageStr, prompt: Text(L10n.Chat.textfieldPrompt).foregroundColor(.Material.Shape.separator)) + TextField("", text: $messageStr, prompt: Text(L10n.Chat.textfieldPrompt).foregroundColor(.Material.Shape.separator), axis: .vertical) .font(.body1) .foregroundColor(Color.Material.Text.main) .accentColor(.Material.Shape.black) @@ -77,6 +77,9 @@ struct ConversationTextInput: View { messages.sendMessage(composedMessage) messageStr = "" autoScroll = true + if !messages.replyText.isEmpty { + messages.replyText = "" + } } } } @@ -93,7 +96,7 @@ struct ConversationTextInput: View { private var composedMessage: String { var result = "" if !messages.replyText.isEmpty { - result += messages.replyText + "\n\n" + result += messages.replyText.makeReply + "\n\n" } result += messageStr return result