Correctly copy an URI so it can be opened with lbry-app when shared.

This commit is contained in:
Daniel Dominguez 2018-05-21 14:18:02 -03:00
parent 86876d6a19
commit b4542517de

View file

@ -1,6 +1,6 @@
// @flow
import * as React from 'react';
import { normalizeURI } from 'lbry-redux';
import { normalizeURI, convertToShareLink } from 'lbry-redux';
import Button from 'component/button';
import CardMedia from 'component/cardMedia';
import TruncatedText from 'component/common/truncated-text';
@ -62,7 +62,7 @@ class FileCard extends React.PureComponent<Props> {
const shouldObscureNsfw = obscureNsfw && metadata && metadata.nsfw;
const isRewardContent = claim && rewardedContentClaimIds.includes(claim.claim_id);
const handleContextMenu = event => {
openCopyLinkMenu(uri, event);
openCopyLinkMenu(convertToShareLink(uri), event);
};
// We should be able to tab through cards