call claim_list after publishing to ensure repost is listed in my claims
This commit is contained in:
parent
50c69fe1dc
commit
3d64f8acc6
2 changed files with 13 additions and 6 deletions
5
dist/bundle.es.js
vendored
5
dist/bundle.es.js
vendored
|
@ -3149,11 +3149,9 @@ function doFetchChannelListMine(page = 1, pageSize = 99999, resolve = true) {
|
|||
});
|
||||
|
||||
const callback = response => {
|
||||
const { items } = response;
|
||||
|
||||
dispatch({
|
||||
type: FETCH_CHANNEL_LIST_COMPLETED,
|
||||
data: { claims: items }
|
||||
data: { claims: response.items }
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -3223,6 +3221,7 @@ function doRepost(options) {
|
|||
}
|
||||
});
|
||||
|
||||
dispatch(doFetchClaimListMine(1, 10));
|
||||
resolve();
|
||||
}
|
||||
|
||||
|
|
|
@ -94,7 +94,11 @@ export function doResolveUri(uri: string) {
|
|||
return doResolveUris([uri]);
|
||||
}
|
||||
|
||||
export function doFetchClaimListMine(page: number = 1, pageSize: number = 99999, resolve: boolean = true) {
|
||||
export function doFetchClaimListMine(
|
||||
page: number = 1,
|
||||
pageSize: number = 99999,
|
||||
resolve: boolean = true
|
||||
) {
|
||||
return (dispatch: Dispatch) => {
|
||||
dispatch({
|
||||
type: ACTIONS.FETCH_CLAIM_LIST_MINE_STARTED,
|
||||
|
@ -385,14 +389,17 @@ export function doImportChannel(certificate: string) {
|
|||
};
|
||||
}
|
||||
|
||||
export function doFetchChannelListMine(page: number = 1, pageSize: number = 99999, resolve: boolean = true) {
|
||||
export function doFetchChannelListMine(
|
||||
page: number = 1,
|
||||
pageSize: number = 99999,
|
||||
resolve: boolean = true
|
||||
) {
|
||||
return (dispatch: Dispatch) => {
|
||||
dispatch({
|
||||
type: ACTIONS.FETCH_CHANNEL_LIST_STARTED,
|
||||
});
|
||||
|
||||
const callback = (response: ChannelListResponse) => {
|
||||
|
||||
dispatch({
|
||||
type: ACTIONS.FETCH_CHANNEL_LIST_COMPLETED,
|
||||
data: { claims: response.items },
|
||||
|
@ -477,6 +484,7 @@ export function doRepost(options: StreamRepostOptions) {
|
|||
},
|
||||
});
|
||||
|
||||
dispatch(doFetchClaimListMine(1, 10));
|
||||
resolve();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue