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}
|
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 && (
|
||||||
|
|||||||
@ -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}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user