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) {
|
||||
dispatch({
|
||||
type: types.FETCH_CHANNEL_CLAIMS_STARTED,
|
||||
data: { uri },
|
||||
});
|
||||
|
||||
lbry.resolve({ uri }).then(resolutionInfo => {
|
||||
const { claims_in_channel } = resolutionInfo
|
||||
? resolutionInfo
|
||||
: { claims_in_channel: [] };
|
||||
lbry.claim_list_by_channel({ uri, page }).then(result => {
|
||||
const claimResult = result[uri],
|
||||
claims = claimResult ? claimResult.claims_in_channel : [];
|
||||
|
||||
dispatch({
|
||||
type: types.FETCH_CHANNEL_CLAIMS_COMPLETED,
|
||||
data: {
|
||||
uri,
|
||||
claims: claims_in_channel,
|
||||
claims: claims,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
@ -524,7 +524,7 @@ lbry.resolve = function(params = {}) {
|
|||
lbry._claimCache[params.uri] = data;
|
||||
}
|
||||
setSession(claimCacheKey, lbry._claimCache);
|
||||
resolve(data);
|
||||
resolve(data && data[params.uri] ? data[params.uri] : {});
|
||||
},
|
||||
reject
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue