Skip to content
Snippets Groups Projects
Commit 1376ee1f authored by Sébastien Blin's avatar Sébastien Blin
Browse files

MessageBar: avoid multiple composing status changed

Change-Id: I6bd2a7d961228584a74a731beb73b291f6c9a6bf
parent 2b03107b
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,6 @@ RowLayout {
sendMessageButtonClicked();
}
onTextChanged: {
MessagesAdapter.userIsComposing(text ? true : false);
if (!text) {
messageBarTextArea.heightBinding();
}
......
......@@ -171,6 +171,7 @@ JamiFlickable {
textFormat: TextEdit.PlainText
placeholderTextColor: JamiTheme.messageBarPlaceholderTextColor
horizontalAlignment: Text.AlignLeft
property var cacheText: ""
background: Rectangle {
border.width: 0
......@@ -183,10 +184,10 @@ JamiFlickable {
}
onTextChanged: {
if (text)
MessagesAdapter.userIsComposing(true);
else
MessagesAdapter.userIsComposing(false);
if (text != cacheText) {
cacheText = text;
MessagesAdapter.userIsComposing(text ? true : false);
}
}
// Intercept paste event to use C++ QMimeData
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment