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

@@ -8,10 +8,10 @@ Row {
spacing: standardSpacing / 2
layoutDirection: isOwn ? Qt.RightToLeft : Qt.LeftToRight
HAvatar {
HUserAvatar {
id: avatar
hidden: combine
name: senderInfo.displayName || Utils.stripUserId(model.senderId)
userId: model.senderId
dimension: model.showNameLine ? 48 : 28
visible: ! isOwn
}