moment/src/qml/Base/HUserAvatar.qml
2019-07-07 23:53:08 -04:00

21 lines
521 B
QML

// Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3.
import QtQuick 2.7
HAvatar {
property string userId: ""
readonly property var userInfo: userId ? users.find(userId) : ({})
name: userInfo.displayName || userId.substring(1) // no leading @
imageUrl: userInfo.avatarUrl
//HImage {
//id: status
//anchors.right: parent.right
//anchors.bottom: parent.bottom
//source: "../../icons/status.svg"
//sourceSize.width: 12
//}
}