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:
parent
42458f4a7c
commit
c241154337
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue