From 1557996cbc320a92767b2703b59221bdca1130d8 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Fri, 27 Aug 2021 17:15:59 +0300 Subject: [PATCH] fix(@desktop/chatInput) Pasting text with emoji was invisible When text from clipboard that contained any emoji was pasted in the chat input it was becoming invisible Closes #3291 --- ui/shared/status/StatusChatInput.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/shared/status/StatusChatInput.qml b/ui/shared/status/StatusChatInput.qml index 63884196c1..9fab5799b4 100644 --- a/ui/shared/status/StatusChatInput.qml +++ b/ui/shared/status/StatusChatInput.qml @@ -358,7 +358,7 @@ Rectangle { // we can only get it in the `released` event if (paste) { paste = false; - const plainText = messageInputField.getText(0, messageInputField.length); + const plainText = messageInputField.getFormattedText(0, messageInputField.length); messageInputField.remove(0, messageInputField.length); insertInTextInput(0, plainText); }