Handle all variants of hearts as the same
This commit is contained in:
parent
7e63b8319a
commit
edf5553692
@ -50,7 +50,7 @@ export class AppStickersManager {
|
||||
private getGreetingStickersPromise: Promise<void>;
|
||||
|
||||
private sounds: Record<string, MyDocument>;
|
||||
getAnimatedEmojiSoundsPromise: Promise<void>;
|
||||
private getAnimatedEmojiSoundsPromise: Promise<void>;
|
||||
|
||||
constructor() {
|
||||
this.getStickerSetPromises = {};
|
||||
@ -231,6 +231,12 @@ export class AppStickersManager {
|
||||
const stickerSet = this.storage.getFromCache(isAnimation ? EMOJI_ANIMATIONS_SET_LOCAL_ID : EMOJI_SET_LOCAL_ID);
|
||||
if(!stickerSet || !stickerSet.documents) return undefined;
|
||||
|
||||
if(isAnimation) {
|
||||
if(['🧡', '💛', '💚', '💙', '💜', '🖤', '🤍', '🤎'].includes(emoji)) {
|
||||
emoji = '❤️';
|
||||
}
|
||||
}
|
||||
|
||||
emoji = this.cleanEmoji(emoji);
|
||||
const pack = stickerSet.packs.find(p => p.emoticon === emoji);
|
||||
return pack ? appDocsManager.getDoc(pack.documents[0]) : undefined;
|
||||
|
Loading…
x
Reference in New Issue
Block a user