Support room avatars
This commit is contained in:
parent
2ced310ce1
commit
9af9e88b0d
|
@ -10,6 +10,11 @@ HAvatar {
|
|||
readonly property var roomInfo: rooms.getWhere({"roomId": roomId}, 1)[0]
|
||||
readonly property var dname: roomInfo ? roomInfo.displayName : ""
|
||||
|
||||
name: dname[0] == "#" && dname.length > 1 ? dname.substring(1) : dname
|
||||
imageUrl: roomInfo ? roomInfo.avatarUrl : null
|
||||
name:
|
||||
dname[0] == "#" && dname.length > 1 ? dname.substring(1) : dname
|
||||
|
||||
imageUrl:
|
||||
roomInfo.avatarUrl ?
|
||||
("image://python/crop/" + roomInfo.avatarUrl) :
|
||||
null
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user