11 lines
303 B
QML
11 lines
303 B
QML
|
import QtQuick 2.7
|
||
|
|
||
|
HAvatar {
|
||
|
property string roomId: ""
|
||
|
|
||
|
readonly property var roomInfo: rooms.getWhere({"roomId": roomId}, 1)[0]
|
||
|
readonly property var dname: roomInfo.displayName
|
||
|
name: dname[0] == "#" && dname.length > 1 ? dname.substring(1) : dname
|
||
|
imageUrl: roomInfo.avatarUrl
|
||
|
}
|