Use sticker for red heart if there is no dedicated sticker for a colored heart.
This commit is contained in:
parent
6d21161f70
commit
a54b37a8d8
@ -4067,6 +4067,12 @@ vector<FileId> StickersManager::get_animated_emoji_stickers(const StickerSet *st
|
|||||||
result.push_back(sticker_id);
|
result.push_back(sticker_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (result.empty()) {
|
||||||
|
const static vector<string> heart_emojis{"π", "π", "π", "π", "π§‘", "π€", "π€", "π€"};
|
||||||
|
if (td::contains(heart_emojis, emoji)) {
|
||||||
|
return get_animated_emoji_stickers(sticker_set, "β€");
|
||||||
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loadingβ¦
x
Reference in New Issue
Block a user