store channel when claim is resolved

This commit is contained in:
Sean Yesmunt 2021-02-18 23:30:20 -05:00
parent bcaedbcd9c
commit f37fd9bf92
2 changed files with 8 additions and 5 deletions

5
dist/bundle.es.js vendored
View file

@ -3313,13 +3313,11 @@ const doCheckPendingTxs = () => (dispatch, getState) => {
if (noLongerPendingConsolidate.length) {
if (noLongerPendingConsolidate.includes(pendingConsTxid)) {
dispatch(doToast({
title: __('Wallet Job'),
message: __('Your wallet is finished consolidating')
}));
}
if (noLongerPendingConsolidate.includes(pendingMassCLaimTxid)) {
dispatch(doToast({
title: __('Wallet Job'),
message: __('Your tips have been collected')
}));
}
@ -5001,7 +4999,8 @@ function handleClaimAction(state, action) {
Object.entries(resolveInfo).forEach(([url, resolveResponse]) => {
// $FlowFixMe
const { claimsInChannel, stream, channel } = resolveResponse;
const { claimsInChannel, stream, channel: channelFromResolve } = resolveResponse;
const channel = channelFromResolve || stream && stream.signing_channel;
if (stream) {
if (pendingIds.includes(stream.claim_id)) {

View file

@ -119,7 +119,8 @@ function handleClaimAction(state: State, action: any): State {
Object.entries(resolveInfo).forEach(([url: string, resolveResponse: ResolveResponse]) => {
// $FlowFixMe
const { claimsInChannel, stream, channel } = resolveResponse;
const { claimsInChannel, stream, channel: channelFromResolve } = resolveResponse;
const channel = channelFromResolve || (stream && stream.signing_channel);
if (stream) {
if (pendingIds.includes(stream.claim_id)) {
@ -570,7 +571,10 @@ reducers[ACTIONS.CLAIM_SEARCH_FAILED] = (state: State, action: any): State => {
const { query } = action.data;
const claimSearchByQuery = Object.assign({}, state.claimSearchByQuery);
const fetchingClaimSearchByQuery = Object.assign({}, state.fetchingClaimSearchByQuery);
const claimSearchByQueryLastPageReached = Object.assign({}, state.claimSearchByQueryLastPageReached);
const claimSearchByQueryLastPageReached = Object.assign(
{},
state.claimSearchByQueryLastPageReached
);
delete fetchingClaimSearchByQuery[query];