fix sync bringing back unpublished
This commit is contained in:
parent
dc19ecb77e
commit
d71b9a351c
2 changed files with 10 additions and 9 deletions
7
dist/bundle.es.js
vendored
7
dist/bundle.es.js
vendored
|
@ -4387,14 +4387,15 @@ function doCollectionPublish(options, localId) {
|
||||||
// move unpublished collection to pending collection with new publish id
|
// move unpublished collection to pending collection with new publish id
|
||||||
// recent publish won't resolve this second. handle it in checkPending
|
// recent publish won't resolve this second. handle it in checkPending
|
||||||
{
|
{
|
||||||
type: COLLECTION_PENDING,
|
|
||||||
data: { localId: localId, claimId: collectionClaim.claim_id }
|
|
||||||
}, {
|
|
||||||
type: UPDATE_PENDING_CLAIMS,
|
type: UPDATE_PENDING_CLAIMS,
|
||||||
data: {
|
data: {
|
||||||
claims: [collectionClaim]
|
claims: [collectionClaim]
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
dispatch({
|
||||||
|
type: COLLECTION_PENDING,
|
||||||
|
data: { localId: localId, claimId: collectionClaim.claim_id }
|
||||||
|
});
|
||||||
dispatch(doCheckPendingClaims());
|
dispatch(doCheckPendingClaims());
|
||||||
dispatch(doFetchCollectionListMine(1, 10));
|
dispatch(doFetchCollectionListMine(1, 10));
|
||||||
return resolve(collectionClaim);
|
return resolve(collectionClaim);
|
||||||
|
|
|
@ -79,7 +79,7 @@ export function doResolveUris(
|
||||||
const collectionIds: Array<string> = [];
|
const collectionIds: Array<string> = [];
|
||||||
|
|
||||||
return Lbry.resolve({ urls: urisToResolve, ...options }).then(
|
return Lbry.resolve({ urls: urisToResolve, ...options }).then(
|
||||||
async(result: ResolveResponse) => {
|
async (result: ResolveResponse) => {
|
||||||
let repostedResults = {};
|
let repostedResults = {};
|
||||||
const collectionClaimIdsToResolve = [];
|
const collectionClaimIdsToResolve = [];
|
||||||
const repostsToResolve = [];
|
const repostsToResolve = [];
|
||||||
|
@ -653,7 +653,7 @@ export function doClaimSearch(
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
const query = createNormalizedClaimSearchKey(options);
|
const query = createNormalizedClaimSearchKey(options);
|
||||||
return async(dispatch: Dispatch) => {
|
return async (dispatch: Dispatch) => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.CLAIM_SEARCH_STARTED,
|
type: ACTIONS.CLAIM_SEARCH_STARTED,
|
||||||
data: { query: query },
|
data: { query: query },
|
||||||
|
@ -802,10 +802,6 @@ export function doCollectionPublish(
|
||||||
},
|
},
|
||||||
// move unpublished collection to pending collection with new publish id
|
// move unpublished collection to pending collection with new publish id
|
||||||
// recent publish won't resolve this second. handle it in checkPending
|
// recent publish won't resolve this second. handle it in checkPending
|
||||||
{
|
|
||||||
type: ACTIONS.COLLECTION_PENDING,
|
|
||||||
data: { localId: localId, claimId: collectionClaim.claim_id },
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: ACTIONS.UPDATE_PENDING_CLAIMS,
|
type: ACTIONS.UPDATE_PENDING_CLAIMS,
|
||||||
data: {
|
data: {
|
||||||
|
@ -814,6 +810,10 @@ export function doCollectionPublish(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
dispatch({
|
||||||
|
type: ACTIONS.COLLECTION_PENDING,
|
||||||
|
data: { localId: localId, claimId: collectionClaim.claim_id },
|
||||||
|
});
|
||||||
dispatch(doCheckPendingClaims());
|
dispatch(doCheckPendingClaims());
|
||||||
dispatch(doFetchCollectionListMine(1, 10));
|
dispatch(doFetchCollectionListMine(1, 10));
|
||||||
return resolve(collectionClaim);
|
return resolve(collectionClaim);
|
||||||
|
|
Loading…
Reference in a new issue