add resolve parameter to channel_list #274

Merged
akinwale merged 1 commit from channel-list-resolve into master 2020-02-12 18:11:44 +01:00
2 changed files with 4 additions and 4 deletions

4
dist/bundle.es.js vendored
View file

@ -3129,7 +3129,7 @@ function doImportChannel(certificate) {
};
}
function doFetchChannelListMine(page = 1, pageSize = 99999) {
function doFetchChannelListMine(page = 1, pageSize = 99999, resolve = false) {
return dispatch => {
dispatch({
type: FETCH_CHANNEL_LIST_STARTED
@ -3142,7 +3142,7 @@ function doFetchChannelListMine(page = 1, pageSize = 99999) {
});
};
lbryProxy.channel_list({ page, page_size: pageSize }).then(callback);
lbryProxy.channel_list({ page, page_size: pageSize, resolve }).then(callback);
};
}

View file

@ -383,7 +383,7 @@ export function doImportChannel(certificate: string) {
};
}
export function doFetchChannelListMine(page: number = 1, pageSize: number = 99999) {
export function doFetchChannelListMine(page: number = 1, pageSize: number = 99999, resolve: boolean = false) {
return (dispatch: Dispatch) => {
dispatch({
type: ACTIONS.FETCH_CHANNEL_LIST_STARTED,
@ -396,7 +396,7 @@ export function doFetchChannelListMine(page: number = 1, pageSize: number = 9999
});
};
Lbry.channel_list({ page, page_size: pageSize }).then(callback);
Lbry.channel_list({ page, page_size: pageSize, resolve }).then(callback);
};
}