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,6 +1,5 @@
import QtQuick 2.7
import "../../Base"
import "../../utils.js" as Utils
Banner {
property string userId: ""
@@ -9,7 +8,7 @@ Banner {
color: theme.chat.leftBanner.background
// TODO: avatar func auto
avatar.name: userInfo.displayName || Utils.stripUserId(userId)
avatar.userId: userId
avatar.imageUrl: users.getUser(userId).avatarUrl
labelText: qsTr("You are not part of this room anymore.")