From 341d3ebcf78693139da90f24896d8a18b18da409 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Tue, 29 Jun 2021 11:58:36 +0200 Subject: [PATCH] fix: typing in `<` in the input box deletes everything afterwards in Fixes: #2267 --- ui/shared/status/StatusChatInput.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/shared/status/StatusChatInput.qml b/ui/shared/status/StatusChatInput.qml index 1bbaf3444c..a9fd2a5aab 100644 --- a/ui/shared/status/StatusChatInput.qml +++ b/ui/shared/status/StatusChatInput.qml @@ -319,8 +319,10 @@ Rectangle { // TODO use the new formatInputMessage function instead const plainText = getPlainText() const newText = parseBackText(plainText) + const finalText = newText.replace("<", "<") + messageInputField.remove(0, messageInputField.length) - insertInTextInput(0, newText) + insertInTextInput(0, finalText) } else { if (event.key === Qt.Key_Asterisk || event.key === Qt.Key_QuoteLeft ||