Manage Topic: Fix default icon (#3083)
This commit is contained in:
parent
6a39a7bdd2
commit
f13d0218d8
@ -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 && (
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user