fix the MessageURl showing when there isn't hasContent or imageUrl
This commit is contained in:
parent
ae0a218a7a
commit
2c1a412fce
|
@ -124,6 +124,7 @@ const Url = React.memo(
|
||||||
|
|
||||||
const hasContent = !!url.title || !!url.description;
|
const hasContent = !!url.title || !!url.description;
|
||||||
|
|
||||||
|
if (hasContent || imageUrl) {
|
||||||
return (
|
return (
|
||||||
<Touchable
|
<Touchable
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
|
@ -145,6 +146,9 @@ const Url = React.memo(
|
||||||
</>
|
</>
|
||||||
</Touchable>
|
</Touchable>
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
},
|
},
|
||||||
(oldProps, newProps) => dequal(oldProps.url, newProps.url) && oldProps.theme === newProps.theme
|
(oldProps, newProps) => dequal(oldProps.url, newProps.url) && oldProps.theme === newProps.theme
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue