Revert "Handle timestamp in Markdown."

This reverts commit 3f1913e5f4.
This commit is contained in:
Sean Yesmunt 2020-12-14 22:31:04 -05:00
parent 3f1913e5f4
commit 85f8965d44
3 changed files with 4 additions and 34 deletions

View file

@ -18,16 +18,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added
- Turn timestamps in a video's description and comments into links _community pr!_ ([#5156](https://github.com/lbryio/lbry-desktop/pull/5156))
### Changed
### Fixed
## [0.49.0] - [2020-12-10]
### Added
- Better search suggestions ([#5124](https://github.com/lbryio/lbry-desktop/pull/5124))
- Inline video player in comments/markdown posts ([#4894](https://github.com/lbryio/lbry-desktop/pull/4894))
- Better handling of winning claim + top page improvements ([#4944](https://github.com/lbryio/lbry-desktop/pull/4944))

View file

@ -62,27 +62,10 @@ function MarkdownLink(props: Props) {
}
}
if (href.startsWith('?t=')) {
// Video timestamp markers
element = (
<Button
button="link"
iconRight={undefined}
title={title || decodedUri}
label={children}
className="button--external-link"
onClick={() => {
if (window.player) {
window.player.currentTime(parseInt(href.substr(3)));
window.scrollTo(0, 0);
}
}}
/>
);
} else if (!simpleLinks && ((protocol && protocol[0] === 'lbry:' && isURIValid(decodedUri)) || lbryUrlFromLink)) {
// Return plain text if no valid url
// Return external link if protocol is http or https
// Return local link if protocol is lbry uri
// Return plain text if no valid url
// Return external link if protocol is http or https
// Return local link if protocol is lbry uri
if (!simpleLinks && ((protocol && protocol[0] === 'lbry:' && isURIValid(decodedUri)) || lbryUrlFromLink)) {
element = (
<ClaimLink
uri={lbryUrlFromLink || decodedUri}

View file

@ -345,8 +345,6 @@ export default React.memo<Props>(function VideoJs(props: Props) {
}
});
window.player = player;
// fixes #3498 (https://github.com/lbryio/lbry-desktop/issues/3498)
// summary: on firefox the focus would stick to the fullscreen button which caused buggy behavior with spacebar
// $FlowFixMe
@ -359,7 +357,6 @@ export default React.memo<Props>(function VideoJs(props: Props) {
if (player) {
player.dispose();
window.player = undefined;
}
};
}