fix: code review

This commit is contained in:
Richard Ramos 2021-02-08 12:24:35 -04:00 committed by Iuri Matias
parent 21176f702f
commit 7178ae5910
1 changed files with 2 additions and 3 deletions

View File

@ -196,9 +196,8 @@ Rectangle {
paste = false; paste = false;
// Remove format // Remove format
const cursor = messageInputField.cursorPosition; messageInputField.text = Emoji.parse(chatsModel.plainText(Emoji.deparse(messageInputField.text)).replaceAll("\n","<br />"))
messageInputField.text = Emoji.parse(chatsModel.plainText(Emoji.deparse(messageInputField.text))); messageInputField.cursorPosition = messageInputField.length;
messageInputField.cursorPosition = cursor;
interrogateMessage(); interrogateMessage();
} }