Disable full screen avatar view if the user has no avatar.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user