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}
key="default-topic-icon"
>
<img src={grey} alt="Reset" />
<img src={grey} alt="Reset" className="sticker-media" />
</Button>
)}
{withDefaultStatusIcon && (

View File

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