Do not emit new message if it is a state event.

This commit is contained in:
Black Hat
2018-11-21 19:52:26 +08:00
parent 9ad062ca30
commit 3ec1cf71bf
3 changed files with 14 additions and 5 deletions

View File

@@ -69,6 +69,8 @@ ColumnLayout {
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: 1
Layout.leftMargin: 12
Layout.rightMargin: 12
color: MSettings.darkTheme ? "#424242" : "#e7ebeb"
}

View File

@@ -114,6 +114,8 @@ Control {
Layout.fillWidth: true
Layout.margins: 8
id: replyItem
visible: isReply
spacing: 8
@@ -145,13 +147,17 @@ Control {
textArea: inputField
emojiModel: EmojiModel { id: emojiModel }
}
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: 1
Rectangle {
Layout.fillWidth: true
Layout.preferredHeight: 1
Layout.leftMargin: 12
Layout.rightMargin: 12
color: MSettings.darkTheme ? "#424242" : "#e7ebeb"
}
visible: emojiPicker.visible || replyItem.visible
color: MSettings.darkTheme ? "#424242" : "#e7ebeb"
}
RowLayout {