Disable full screen avatar view if the user has no avatar.

This commit is contained in:
Black Hat
2019-10-02 01:33:49 -07:00
parent 8e2a29b827
commit d91de86e52

View File

@@ -35,7 +35,11 @@ Dialog {
circular: true
onPrimaryClicked: fullScreenImage.createObject(parent, {"filename": user.diaplayName, "localPath": room.urlToMxcUrl(user.avatarUrl)}).showFullScreen()
onPrimaryClicked: {
if (user.avatarMediaId) {
fullScreenImage.createObject(parent, {"filename": user.diaplayName, "localPath": room.urlToMxcUrl(user.avatarUrl)}).showFullScreen()
}
}
}
}