fix: code review
This commit is contained in:
parent
21176f702f
commit
7178ae5910
|
@ -196,9 +196,8 @@ Rectangle {
|
|||
paste = false;
|
||||
|
||||
// Remove format
|
||||
const cursor = messageInputField.cursorPosition;
|
||||
messageInputField.text = Emoji.parse(chatsModel.plainText(Emoji.deparse(messageInputField.text)));
|
||||
messageInputField.cursorPosition = cursor;
|
||||
messageInputField.text = Emoji.parse(chatsModel.plainText(Emoji.deparse(messageInputField.text)).replaceAll("\n","<br />"))
|
||||
messageInputField.cursorPosition = messageInputField.length;
|
||||
|
||||
interrogateMessage();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue