Add HUserAvatar and HRoomAvatar components

This commit is contained in:
miruka
2019-07-07 00:24:23 -04:00
parent 064fb6e9a2
commit 683ee3e1cf
14 changed files with 55 additions and 59 deletions

View File

@@ -1,7 +1,6 @@
import QtQuick 2.7
import QtQuick.Layouts 1.3
import "../Base"
import "../utils.js" as Utils
HRectangle {
function setFocus() { textArea.forceActiveFocus() }
@@ -17,10 +16,9 @@ HRectangle {
HRowLayout {
anchors.fill: parent
HAvatar {
HUserAvatar {
id: avatar
name: chatPage.senderInfo.displayName ||
Utils.stripUserId(chatPage.userId)
userId: chatPage.userId
dimension: sendBox.Layout.minimumHeight
}