From 8623edc420982133fa46f0501b61c57457e352e5 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 8 Jul 2020 19:59:51 -0400 Subject: [PATCH] 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. --- src/gui/Pages/Chat/Composer/MessageArea.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/Pages/Chat/Composer/MessageArea.qml b/src/gui/Pages/Chat/Composer/MessageArea.qml index 02e15421..1a413cbd 100644 --- a/src/gui/Pages/Chat/Composer/MessageArea.qml +++ b/src/gui/Pages/Chat/Composer/MessageArea.qml @@ -103,7 +103,7 @@ HTextArea { // TODO: make this more declarative onTextChanged: { - if (utils.isEmptyObject(usableAliases)) { + if (! text || utils.isEmptyObject(usableAliases)) { writingUserId = Qt.binding(() => chat.userId) toSend = text setTyping(Boolean(text))