Update emoji-data to v15.1.1 (#5182)

This commit is contained in:
nerix
2024-02-18 14:11:25 +01:00
committed by GitHub
parent e130c48f76
commit 641cb26a76
3 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -167,7 +167,7 @@ void Emojis::load()
void Emojis::loadEmojis()
{
// Current version: https://github.com/iamcal/emoji-data/blob/v14.0.0/emoji.json (Emoji version 14.0 (2022))
// Current version: https://github.com/iamcal/emoji-data/blob/v15.1.1/emoji.json (Emoji version 15.1 (2023))
QFile file(":/emoji.json");
file.open(QFile::ReadOnly);
QTextStream s1(&file);
@@ -269,14 +269,15 @@ void Emojis::loadEmojiSet()
};
// clang-format on
// As of emoji-data v15.1.1, google is the only source missing no images.
if (!emoji->capabilities.contains(emojiSetToUse))
{
emojiSetToUse = "Twitter";
emojiSetToUse = "Google";
}
QString code = emoji->unifiedCode.toLower();
QString urlPrefix =
"https://pajbot.com/static/emoji-v2/img/twitter/64/";
"https://pajbot.com/static/emoji-v2/img/google/64/";
auto it = emojiSets.find(emojiSetToUse);
if (it != emojiSets.end())
{