mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-21 16:47:07 +02:00
Fix skin-colored animated emoji refresh.
This commit is contained in:
parent
9a0edbd0c5
commit
07f94cc184
1 changed files with 8 additions and 1 deletions
|
@ -247,7 +247,7 @@ void EmojiPack::applySet(const MTPDmessages_stickerSet &data) {
|
|||
was.erase(i);
|
||||
}
|
||||
}
|
||||
for (const auto &[emoji, Document] : was) {
|
||||
for (const auto &[emoji, document] : was) {
|
||||
refreshItems(emoji);
|
||||
}
|
||||
}
|
||||
|
@ -260,6 +260,13 @@ void EmojiPack::refreshAll() {
|
|||
|
||||
void EmojiPack::refreshItems(EmojiPtr emoji) {
|
||||
const auto i = _items.find(IsolatedEmoji{ { emoji } });
|
||||
if (!emoji->colored()) {
|
||||
if (const auto count = emoji->variantsCount()) {
|
||||
for (auto i = 0; i != count; ++i) {
|
||||
refreshItems(emoji->variant(i + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (i == end(_items)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue