From 351890decff63a19db177bfb631edb6cb8a44d63 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Thu, 25 Feb 2021 14:28:29 +0800 Subject: [PATCH] Fix 'isPlaying' to reflect 'playing' instead of 'primary' URI ## Issue 4959: Deleting MD from downloads list causes spinning icon to run forever 5077: player doesn't close when video deleted --- ui/component/fileRenderInline/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/component/fileRenderInline/index.js b/ui/component/fileRenderInline/index.js index 326144329..d13633233 100644 --- a/ui/component/fileRenderInline/index.js +++ b/ui/component/fileRenderInline/index.js @@ -1,14 +1,14 @@ import { connect } from 'react-redux'; import { makeSelectFileInfoForUri, makeSelectStreamingUrlForUri } from 'lbry-redux'; import { doClaimEligiblePurchaseRewards } from 'redux/actions/rewards'; -import { makeSelectFileRenderModeForUri, selectPrimaryUri } from 'redux/selectors/content'; +import { makeSelectFileRenderModeForUri, makeSelectIsPlaying } from 'redux/selectors/content'; import { withRouter } from 'react-router'; import { doAnalyticsView } from 'redux/actions/app'; import FileRenderInline from './view'; const select = (state, props) => ({ fileInfo: makeSelectFileInfoForUri(props.uri)(state), - isPlaying: selectPrimaryUri(state) === props.uri, + isPlaying: makeSelectIsPlaying(props.uri)(state), streamingUrl: makeSelectStreamingUrlForUri(props.uri)(state), renderMode: makeSelectFileRenderModeForUri(props.uri)(state), });