updates required for lbry daemon 0.12
This commit is contained in:
parent
efd289b1ed
commit
4c8d649830
3 changed files with 7 additions and 8 deletions
|
@ -1 +1 @@
|
||||||
https://github.com/lbryio/lbry/releases/download/v0.11.0/lbrynet-daemon-v0.11.0-OSNAME.zip
|
https://github.com/lbryio/lbry/releases/download/v0.12.2rc2/lbrynet-daemon-v0.12.2rc2-OSNAME.zip
|
||||||
|
|
|
@ -246,23 +246,22 @@ export function doPurchaseUri(uri, purchaseModalName) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function doFetchClaimsByChannel(uri) {
|
export function doFetchClaimsByChannel(uri, page = 1) {
|
||||||
return function(dispatch, getState) {
|
return function(dispatch, getState) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.FETCH_CHANNEL_CLAIMS_STARTED,
|
type: types.FETCH_CHANNEL_CLAIMS_STARTED,
|
||||||
data: { uri },
|
data: { uri },
|
||||||
});
|
});
|
||||||
|
|
||||||
lbry.resolve({ uri }).then(resolutionInfo => {
|
lbry.claim_list_by_channel({ uri, page }).then(result => {
|
||||||
const { claims_in_channel } = resolutionInfo
|
const claimResult = result[uri],
|
||||||
? resolutionInfo
|
claims = claimResult ? claimResult.claims_in_channel : [];
|
||||||
: { claims_in_channel: [] };
|
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.FETCH_CHANNEL_CLAIMS_COMPLETED,
|
type: types.FETCH_CHANNEL_CLAIMS_COMPLETED,
|
||||||
data: {
|
data: {
|
||||||
uri,
|
uri,
|
||||||
claims: claims_in_channel,
|
claims: claims,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -524,7 +524,7 @@ lbry.resolve = function(params = {}) {
|
||||||
lbry._claimCache[params.uri] = data;
|
lbry._claimCache[params.uri] = data;
|
||||||
}
|
}
|
||||||
setSession(claimCacheKey, lbry._claimCache);
|
setSession(claimCacheKey, lbry._claimCache);
|
||||||
resolve(data);
|
resolve(data && data[params.uri] ? data[params.uri] : {});
|
||||||
},
|
},
|
||||||
reject
|
reject
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue