feat: add support for super stickers in chat and overlay components, including image display, accessibility labels, and backend parsing enhancements

This commit is contained in:
Yusuf İpek
2025-10-12 21:37:53 +03:00
parent da1499733f
commit 1678117d16
10 changed files with 138 additions and 15 deletions
+13
View File
@@ -651,6 +651,19 @@ function ChatItem({ message, isSelected, onSelect, onLinkClick, isPreviouslySele
<MessageText text={message.text} onLinkClick={onLinkClick} />
</p>
)}
{message.superChat?.stickerUrl && (
<div className="chatItem__sticker">
<img
src={proxyImageUrl(message.superChat.stickerUrl)}
alt={message.superChat.stickerAlt || 'Super Sticker'}
className="chatItem__stickerImage"
onError={(e) => {
// Hide image on error
e.currentTarget.style.display = 'none';
}}
/>
</div>
)}
</button>
);
}