Fix a case that sender avatar is not displayed.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -192,6 +192,15 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
DelegateChoice {
|
||||
roleValue: "sticker"
|
||||
delegate: ImageDelegate {
|
||||
anchors.right: sentByMe ? parent.right : undefined
|
||||
|
||||
Layout.maximumWidth: parent.width
|
||||
}
|
||||
}
|
||||
|
||||
DelegateChoice {
|
||||
roleValue: "file"
|
||||
delegate: FileDelegate {
|
||||
|
||||
Reference in New Issue
Block a user