Avoid some more avatar errors when forgetting room
This commit is contained in:
parent
853bb350b4
commit
5b421f02d8
|
@ -9,15 +9,11 @@ HAvatar {
|
||||||
|
|
||||||
readonly property var roomInfo: rooms.getWhere({userId, roomId}, 1)[0]
|
readonly property var roomInfo: rooms.getWhere({userId, roomId}, 1)[0]
|
||||||
|
|
||||||
// roomInfo ? → Avoid error messages when a room is forgotten
|
// Avoid error messages when a room is forgotten
|
||||||
readonly property var dname: roomInfo ? roomInfo.displayName : ""
|
readonly property var dname: roomInfo ? roomInfo.displayName : ""
|
||||||
|
readonly property var avUrl: roomInfo ? roomInfo.avatarUrl : ""
|
||||||
|
|
||||||
name:
|
name: dname[0] == "#" && dname.length > 1 ? dname.substring(1) : dname
|
||||||
dname[0] == "#" && dname.length > 1 ? dname.substring(1) : dname
|
imageUrl: avUrl ? ("image://python/" + avUrl) : null
|
||||||
|
toolTipImageUrl: avUrl ? ("image://python/" + avUrl) : null
|
||||||
imageUrl:
|
|
||||||
roomInfo.avatarUrl ? ("image://python/" + roomInfo.avatarUrl) : null
|
|
||||||
|
|
||||||
toolTipImageUrl:
|
|
||||||
roomInfo.avatarUrl ? ("image://python/" + roomInfo.avatarUrl) : null
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user