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 { ...@@ -193,7 +193,6 @@ RowLayout {
sendMessageButtonClicked(); sendMessageButtonClicked();
} }
onTextChanged: { onTextChanged: {
MessagesAdapter.userIsComposing(text ? true : false);
if (!text) { if (!text) {
messageBarTextArea.heightBinding(); messageBarTextArea.heightBinding();
} }
......
...@@ -171,6 +171,7 @@ JamiFlickable { ...@@ -171,6 +171,7 @@ JamiFlickable {
textFormat: TextEdit.PlainText textFormat: TextEdit.PlainText
placeholderTextColor: JamiTheme.messageBarPlaceholderTextColor placeholderTextColor: JamiTheme.messageBarPlaceholderTextColor
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
property var cacheText: ""
background: Rectangle { background: Rectangle {
border.width: 0 border.width: 0
...@@ -183,10 +184,10 @@ JamiFlickable { ...@@ -183,10 +184,10 @@ JamiFlickable {
} }
onTextChanged: { onTextChanged: {
if (text) if (text != cacheText) {
MessagesAdapter.userIsComposing(true); cacheText = text;
else MessagesAdapter.userIsComposing(text ? true : false);
MessagesAdapter.userIsComposing(false); }
} }
// Intercept paste event to use C++ QMimeData // 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