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:
infinite-persistence 2022-05-06 15:04:05 +08:00 committed by Thomas Zarebczan
parent 3bb7e21d3c
commit fd12a98b1b
2 changed files with 4 additions and 0 deletions

1
flow-typed/Lbry.js vendored
View file

@ -155,6 +155,7 @@ declare type CommentPinResponse = {
declare type CommentAbandonResponse = {
// keyed by the CommentId given
abandoned: boolean,
claim_id: string,
};
declare type ChannelListResponse = {

View file

@ -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,