fix(ContactPanel): unbreak showing identicon rings

- unbreak the user icon in the popup menu
- don't show idention ring for ENS names

Fixes: #7496
This commit is contained in:
Lukáš Tinkl 2022-09-22 01:48:30 +02:00 committed by Lukáš Tinkl
parent 52dbf9b7c8
commit 19aa32a07e
1 changed files with 3 additions and 4 deletions

View File

@ -61,8 +61,8 @@ StatusListItem {
asset.isImage: asset.name.includes("data")
asset.isLetterIdenticon: root.iconSource.toString() === ""
ringSettings {
ringSpecModel: Utils.getColorHashAsJson(root.publicKey)
ringPxSize: Math.max(icon.width / 24.0)
ringSpecModel: root.name.startsWith('@') ? undefined : Utils.getColorHashAsJson(root.publicKey)
ringPxSize: Math.max(asset.width / 24.0)
}
components: [
@ -131,9 +131,8 @@ StatusListItem {
icon.name: "more"
icon.color: Theme.palette.directColor1
onClicked: {
root.openContactContextMenu(root.publicKey, root.name, root.icon)
root.openContactContextMenu(root.publicKey, root.name, root.iconSource)
}
}
]
}