Don't parse a 'mailto:' into a lbry link.

## Issue
5130: Support mailto hyperlinks / urls in markdown

## Change
The markdown components already support mailto, just that the logic here ended up making it a 'ClaimLink'
This commit is contained in:
infiinte-persistence 2020-12-10 16:25:29 +08:00 committed by Sean Yesmunt
parent a75840ab4d
commit b35e68c6d3

View file

@ -40,7 +40,7 @@ function MarkdownLink(props: Props) {
} catch (e) {}
let lbryUrlFromLink;
if (linkUrlObject) {
if (linkUrlObject && !href.startsWith('mailto:')) {
const linkDomain = linkUrlObject.host;
const isKnownAppDomainLink = KNOWN_APP_DOMAINS.includes(linkDomain);
if (isKnownAppDomainLink) {