Redux #115

Merged
6ea86b96 merged 57 commits from redux into redux 2017-05-05 22:55:12 +02:00
Showing only changes of commit 63c3af32f8 - Show all commits

View file

@ -2,6 +2,7 @@ import * as types from 'constants/action_types'
import lbry from 'lbry' import lbry from 'lbry'
import lbryio from 'lbryio' import lbryio from 'lbryio'
import lbryuri from 'lbryuri' import lbryuri from 'lbryuri'
import rewards from 'rewards'
import { import {
selectCurrentUri, selectCurrentUri,
} from 'selectors/app' } from 'selectors/app'
@ -164,6 +165,9 @@ export function doUpdateLoadStatus(uri, outpoint) {
// download hasn't started yet // download hasn't started yet
setTimeout(() => { dispatch(doUpdateLoadStatus(uri, outpoint)) }, 250) setTimeout(() => { dispatch(doUpdateLoadStatus(uri, outpoint)) }, 250)
} else if (fileInfo.completed) { } else if (fileInfo.completed) {
// TODO this isn't going to get called if they reload the client before
// the download finished
rewards.claimNextPurchaseReward()
dispatch({ dispatch({
type: types.DOWNLOADING_COMPLETED, type: types.DOWNLOADING_COMPLETED,
data: { data: {