make sure channel is valid before reading permanent_url
This commit is contained in:
parent
7e093c31f3
commit
6c0436cf14
2 changed files with 2 additions and 2 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -2354,7 +2354,7 @@ const makeSelectFirstRecommendedFileForUri = uri => reselect.createSelector(make
|
||||||
// accepts a regular claim uri lbry://something
|
// accepts a regular claim uri lbry://something
|
||||||
// returns the channel uri that created this claim lbry://@channel
|
// returns the channel uri that created this claim lbry://@channel
|
||||||
const makeSelectChannelForClaimUri = (uri, includePrefix = false) => reselect.createSelector(makeSelectClaimForUri(uri), claim => {
|
const makeSelectChannelForClaimUri = (uri, includePrefix = false) => reselect.createSelector(makeSelectClaimForUri(uri), claim => {
|
||||||
if (!claim || !claim.signing_channel) {
|
if (!claim || !claim.signing_channel || !claim.is_channel_signature_valid) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -576,7 +576,7 @@ export const makeSelectChannelForClaimUri = (uri: string, includePrefix: boolean
|
||||||
createSelector(
|
createSelector(
|
||||||
makeSelectClaimForUri(uri),
|
makeSelectClaimForUri(uri),
|
||||||
(claim: ?Claim) => {
|
(claim: ?Claim) => {
|
||||||
if (!claim || !claim.signing_channel) {
|
if (!claim || !claim.signing_channel || !claim.is_channel_signature_valid) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue