Fix typing notice not sent when composer cleared

Make sure to send a "we're not typing anymore" notice to the server when
the composer is cleared, e.g. when sending a message.
This commit is contained in:
miruka 2020-07-08 19:59:51 -04:00
parent ea0a7517e4
commit 8623edc420

View File

@ -103,7 +103,7 @@ HTextArea {
// TODO: make this more declarative // TODO: make this more declarative
onTextChanged: { onTextChanged: {
if (utils.isEmptyObject(usableAliases)) { if (! text || utils.isEmptyObject(usableAliases)) {
writingUserId = Qt.binding(() => chat.userId) writingUserId = Qt.binding(() => chat.userId)
toSend = text toSend = text
setTyping(Boolean(text)) setTyping(Boolean(text))