Sticker Tooltip: Fix missing results (#1696)

This commit is contained in:
Alexander Zinchuk 2022-02-04 15:18:43 +01:00
parent c3c7b488cc
commit cd172ebea7

View File

@ -35,10 +35,8 @@ export function selectStickersForEmoji(global: GlobalState, emoji: string) {
if (!packs) {
return;
}
const stickers = packs[emoji];
if (stickers) {
stickersForEmoji = stickersForEmoji.concat(stickers);
}
stickersForEmoji = stickersForEmoji.concat(packs[emoji] || [], packs[cleanEmoji(emoji)] || []);
});
return stickersForEmoji;
}