Fix sending composing when opening chat.

Update SDK.
This commit is contained in:
Julien Wadel 2023-10-27 10:11:01 +02:00
parent 2b8304f093
commit 87118d2c88
4 changed files with 5 additions and 5 deletions

View file

@ -40,6 +40,7 @@ Item {
signal validText (string text)
signal audioRecordRequest()
signal emojiClicked()
signal composing()
// ---------------------------------------------------------------------------
@ -267,6 +268,7 @@ Item {
Clipboard.restore()
} else
isAutoRepeating = false// We are no more repeating. Final decision is done on Releasing
droppableTextArea.composing()
}
Keys.onPressed: {
if(event.isAutoRepeat){
@ -296,6 +298,7 @@ Item {
}
}
}
droppableTextArea.composing()
}
}
}

View file

@ -68,9 +68,6 @@ function handleMovementStarted () {
chat.bindToEnd = false
}
function handleTextChanged (text) {
container.proxyModel.compose(text)
}
function sendMessage (text) {
textArea.text = ''

View file

@ -469,9 +469,9 @@ Rectangle {
onTextChanged: {// This slot can be call before the item has been completed because of Rich text. So the cache must not take it account.
if(componentReady) {
proxyModel.cachedText=text
Logic.handleTextChanged(textArea.getText())
}
}
onComposing: proxyModel.compose(getText())
onValidText: {
textArea.text = ''
chat.bindToEnd = true

@ -1 +1 @@
Subproject commit 8756a37ad10399a0c27d32590a0d1cc87ea97c2e
Subproject commit 40373878e26ab10c31c7237f1a22758aac3939ab