Fix wrong avatar for unamed rooms
This commit is contained in:
@@ -4,10 +4,13 @@
|
||||
import QtQuick 2.12
|
||||
|
||||
HAvatar {
|
||||
property string userId: ""
|
||||
property string roomId: ""
|
||||
|
||||
readonly property var roomInfo:
|
||||
rooms.getWhere({"userId": userId, "roomId": roomId}, 1)[0]
|
||||
|
||||
// roomInfo ? → Avoid error messages when a room is forgotten
|
||||
readonly property var roomInfo: rooms.getWhere({"roomId": roomId}, 1)[0]
|
||||
readonly property var dname: roomInfo ? roomInfo.displayName : ""
|
||||
|
||||
name:
|
||||
|
Reference in New Issue
Block a user