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
This commit is contained in:
Alexandra Betouni 2021-08-27 17:15:59 +03:00 committed by Iuri Matias
parent 4916b8f552
commit 1557996cbc
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}