fix: community tag icon is missing

- check for emoji using either `iconId` or `iconHex` as a fallback if
the former fails (can happen with some emojis)

Fixes #14599
This commit is contained in:
Lukáš Tinkl 2024-05-09 13:55:28 +02:00 committed by Lukáš Tinkl
parent d703d0e87f
commit cd06731119
1 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,7 @@ Rectangle {
anchors.centerIn: parent
width: Math.round(parent.width / 2)
height: Math.round(parent.height / 2)
emojiId: Emoji.iconId(root.emoji, root.emojiSize) || ""
emojiId: Emoji.iconId(root.emoji, root.emojiSize) || Emoji.iconHex(root.emoji) || ""
}
StatusBaseText {
@ -86,4 +86,3 @@ Rectangle {
}
}
}