Rename Chat "sender" prop to "senderInfo"
This commit is contained in:
parent
03d9079d63
commit
1ec660807e
|
@ -10,13 +10,12 @@ HColumnLayout {
|
|||
property string category: ""
|
||||
property string roomId: ""
|
||||
|
||||
readonly property var senderInfo: users.getUser(userId)
|
||||
|
||||
readonly property var roomInfo: rooms.getWhere(
|
||||
{"userId": userId, "roomId": roomId, "category": category}, 1
|
||||
)[0]
|
||||
|
||||
readonly property var sender: //TODO: info$
|
||||
users.getUser(userId)
|
||||
|
||||
readonly property bool hasUnknownDevices: false
|
||||
//category == "Rooms" ?
|
||||
//Backend.clients.get(userId).roomHasUnknownDevices(roomId) : false
|
||||
|
|
|
@ -19,7 +19,7 @@ HRectangle {
|
|||
|
||||
HAvatar {
|
||||
id: avatar
|
||||
name: chatPage.sender.displayName ||
|
||||
name: chatPage.senderInfo.displayName ||
|
||||
Utils.stripUserId(chatPage.userId)
|
||||
dimension: sendBox.Layout.minimumHeight
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user