Premium Modal: Open for effects (#4801)

This commit is contained in:
Alexander Zinchuk 2024-08-06 20:06:06 +02:00
parent 490a98be8b
commit 6edf0eaa09

View File

@ -157,7 +157,11 @@ const StickerButton = <T extends number | ApiSticker | ApiBotInlineMediaResult |
const handleClick = () => {
if (isContextMenuOpen) return;
if (isLocked) {
openPremiumModal({ initialSection: 'premium_stickers' });
if (isEffectEmoji) {
openPremiumModal({ initialSection: 'effects' });
} else {
openPremiumModal({ initialSection: 'premium_stickers' });
}
return;
}
onClick?.(clickArg);