Files
neochat/qml/component/AvatarContainer.qml
Black Hat 230231a42f Remove sender tooltip, and sender label, simplify MessageDelegate, add
an option to invoke GC, and update libqmatrixclient.
2018-08-13 22:44:32 +08:00

27 lines
567 B
QML

import QtQuick 2.9
import QtQuick.Controls 2.2
Row {
readonly property bool avatarVisible: !(sentByMe || (aboveAuthor === author && section === aboveSection))
spacing: 6
ImageStatus {
id: avatar
width: height
height: 40
round: false
visible: avatarVisible
source: author.avatarUrl != "" ? "image://mxc/" + author.avatarUrl : null
displayText: author.displayName
}
Rectangle {
width: height
height: 40
color: "transparent"
visible: !avatarVisible
}
}