Add inviter account informations to room invites

This commit is contained in:
miruka
2019-04-21 11:15:03 -04:00
parent bbf29e29b1
commit 9602608b87
5 changed files with 36 additions and 9 deletions

View File

@@ -9,20 +9,24 @@ Rectangle {
Layout.preferredHeight: 32
color: "#BBB"
property var inviter: null
Base.HRowLayout {
id: inviteRow
anchors.fill: parent
Base.Avatar {
id: inviteAvatar
name: ""
name: inviter ? inviter.displayname : ""
dimmension: inviteOffer.Layout.preferredHeight
//imageSource: inviter ? inviter.avatar_url : ""
}
Base.HLabel {
id: inviteLabel
text: "<b>" + "Person" + "</b> " +
qsTr("invited you to join the room.")
text: (inviter ?
("<b>" + inviter.displayname + "</b>") : qsTr("Someone")) +
" " + qsTr("invited you to join the room.")
textFormat: Text.StyledText
maximumLineCount: 1
elide: Text.ElideRight

View File

@@ -28,6 +28,7 @@ ColumnLayout {
InviteOffer {
visible: isInvite
inviter: roomInfo.inviter
}
SendBox {