Refresh commented-channels list when deleting a comment
Users should be allowed to clear their past comments and switch to another channel.
This commit is contained in:
parent
3bb7e21d3c
commit
fd12a98b1b
2 changed files with 4 additions and 0 deletions
1
flow-typed/Lbry.js
vendored
1
flow-typed/Lbry.js
vendored
|
@ -155,6 +155,7 @@ declare type CommentPinResponse = {
|
|||
declare type CommentAbandonResponse = {
|
||||
// keyed by the CommentId given
|
||||
abandoned: boolean,
|
||||
claim_id: string,
|
||||
};
|
||||
|
||||
declare type ChannelListResponse = {
|
||||
|
|
|
@ -831,6 +831,9 @@ export function doCommentAbandon(
|
|||
comment_id: commentId,
|
||||
},
|
||||
});
|
||||
|
||||
// Update the commented-channels list.
|
||||
dispatch(doFetchMyCommentedChannels(result.claim_id));
|
||||
} else {
|
||||
dispatch({
|
||||
type: ACTIONS.COMMENT_ABANDON_FAILED,
|
||||
|
|
Loading…
Reference in a new issue