Fix a case that sender avatar is not displayed.

This commit is contained in:
Black Hat
2019-05-11 16:06:15 +08:00
parent 588c23ebdc
commit 29597faae9
4 changed files with 23 additions and 30 deletions

View File

@@ -262,17 +262,15 @@ ColumnLayout {
Layout.rightMargin: sentByMe ? 12 : undefined
Layout.bottomMargin: 4
visible: showTimestamp || (showAuthor && !sentByMe)
visible: showAuthor
Label {
visible: showTimestamp
text: Qt.formatDateTime(time, "hh:mm")
color: MPalette.lighter
}
Label {
visible: showAuthor && !sentByMe
visible: !sentByMe
text: author.displayName
color: MPalette.lighter