More checks to avoid errors on forgetting room
This commit is contained in:
@@ -13,7 +13,7 @@ Banner {
|
||||
avatar.userId: inviterId
|
||||
|
||||
labelText: qsTr("%1 invited you to join the room.").arg(
|
||||
inviterId ?
|
||||
inviterId && inviterInfo ?
|
||||
Utils.coloredNameHtml(inviterInfo.displayName, inviterId) :
|
||||
qsTr("Someone")
|
||||
)
|
||||
|
@@ -9,7 +9,7 @@ Banner {
|
||||
|
||||
// TODO: avatar func auto
|
||||
avatar.userId: userId
|
||||
avatar.imageUrl: users.find(userId).avatarUrl
|
||||
avatar.imageUrl: userInfo ? userInfo.avatarUrl : null
|
||||
labelText: qsTr("You are not part of this room anymore.")
|
||||
|
||||
buttonModel: [
|
||||
|
Reference in New Issue
Block a user