More checks to avoid errors on forgetting room
This commit is contained in:
parent
2170b16175
commit
d26f087df9
2
TODO.md
2
TODO.md
|
@ -1,5 +1,3 @@
|
|||
- room doesn't change category when accept/reject invite
|
||||
|
||||
- "rejoin" leftbanner button if room is public
|
||||
- daybreak color
|
||||
- html links color
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue
Block a user