Manage Topic: Fix default icon (#3083)

This commit is contained in:
Alexander Zinchuk 2023-04-26 21:15:22 +04:00
parent 6a39a7bdd2
commit f13d0218d8
2 changed files with 3 additions and 2 deletions

View File

@ -291,7 +291,7 @@ const StickerSet: FC<OwnProps> = ({
onClick={handleDefaultTopicIconClick} onClick={handleDefaultTopicIconClick}
key="default-topic-icon" key="default-topic-icon"
> >
<img src={grey} alt="Reset" /> <img src={grey} alt="Reset" className="sticker-media" />
</Button> </Button>
)} )}
{withDefaultStatusIcon && ( {withDefaultStatusIcon && (

View File

@ -18,6 +18,7 @@ type OwnProps = {
}; };
const LOOP_LIMIT = 2; const LOOP_LIMIT = 2;
const DEFAULT_ICON_ID = '0';
const TopicIcon: FC<OwnProps> = ({ const TopicIcon: FC<OwnProps> = ({
topic, topic,
@ -28,7 +29,7 @@ const TopicIcon: FC<OwnProps> = ({
observeIntersection, observeIntersection,
onClick, onClick,
}) => { }) => {
if (topic.iconEmojiId) { if (topic.iconEmojiId && topic.iconEmojiId !== DEFAULT_ICON_ID) {
return ( return (
<CustomEmoji <CustomEmoji
documentId={topic.iconEmojiId} documentId={topic.iconEmojiId}