fix(StatusChatInput): Request link previews only when the StatusChatInput text is actually changing

The `onTextChanged` event is triggered by the StatusSynthaxHighlighter whenever the text style changes even if the text string doesn't.
This event needs to be filtered before notifying the backend about the text change.
This commit is contained in:
Alex Jbanca 2023-12-06 10:52:05 +02:00 committed by Alex Jbanca
parent 42458f4a7c
commit c241154337
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ Item {
chatType: root.activeChatType
textInput.onTextChanged: {
if (!!d.activeChatContentModule) {
if (!!d.activeChatContentModule && textInput.text !== d.activeChatContentModule.inputAreaModule.preservedProperties.text) {
d.activeChatContentModule.inputAreaModule.preservedProperties.text = textInput.text
d.updateLinkPreviews()
}