lbry-desktop/src/renderer/redux/actions/availability.js

28 lines
703 B
JavaScript
Raw Normal View History

// eslint-disable-next-line import/prefer-default-export
export function doFetchAvailability() {
return function() {
/*
this is disabled atm - Jeremy
*/
// const state = getState();
// const alreadyFetching = !!selectFetchingAvailability(state)[uri];
//
// if (!alreadyFetching) {
// dispatch({
// type: ACTIONS.FETCH_AVAILABILITY_STARTED,
// data: { uri },
// });
//
// lbry.get_availability({ uri }).then(availability => {
// dispatch({
// type: ACTIONS.FETCH_AVAILABILITY_COMPLETED,
// data: {
// availability,
// uri,
// },
// });
// });
// }
2017-06-06 23:19:12 +02:00
};
2017-06-06 06:21:55 +02:00
}