From baf2838bf18df4970bd86d8d49d973747ba7e55e Mon Sep 17 00:00:00 2001 From: Iana Date: Wed, 20 Nov 2024 20:49:04 +0200 Subject: [PATCH] [trello.com/c/iN5kgTpk] Fixed: Wrong next-line symbol on Control key on macOS --- Adamant/Modules/Chat/View/Managers/ChatInputBarManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adamant/Modules/Chat/View/Managers/ChatInputBarManager.swift b/Adamant/Modules/Chat/View/Managers/ChatInputBarManager.swift index e07067248..f701dafe8 100644 --- a/Adamant/Modules/Chat/View/Managers/ChatInputBarManager.swift +++ b/Adamant/Modules/Chat/View/Managers/ChatInputBarManager.swift @@ -21,7 +21,7 @@ final class ChatInputBarManager: InputBarAccessoryViewDelegate { Task { @MainActor in guard await viewModel.canSendMessage(withText: text) else { return } inputBar.inputTextView.text = "" - viewModel.sendMessage(text: text) + viewModel.sendMessage(text: text.replacingOccurrences(of: "\u{2028}", with: "\n")) } } }