allow comment blocking on all claims
This commit is contained in:
parent
a841fd6206
commit
a4ce82e97f
1 changed files with 1 additions and 6 deletions
|
@ -10,7 +10,6 @@ type Props = {
|
||||||
clearPlayingUri: () => void,
|
clearPlayingUri: () => void,
|
||||||
authorUri: string, // full LBRY Channel URI: lbry://@channel#123...
|
authorUri: string, // full LBRY Channel URI: lbry://@channel#123...
|
||||||
commentId: string, // sha256 digest identifying the comment
|
commentId: string, // sha256 digest identifying the comment
|
||||||
claimIsMine: boolean, // if you control the claim which this comment was posted on
|
|
||||||
commentIsMine: boolean, // if this comment was signed by an owned channel
|
commentIsMine: boolean, // if this comment was signed by an owned channel
|
||||||
deleteComment: (string, ?string) => void,
|
deleteComment: (string, ?string) => void,
|
||||||
linkedComment?: any,
|
linkedComment?: any,
|
||||||
|
@ -21,7 +20,6 @@ type Props = {
|
||||||
handleEditComment: () => void,
|
handleEditComment: () => void,
|
||||||
contentChannelPermanentUrl: any,
|
contentChannelPermanentUrl: any,
|
||||||
activeChannelClaim: ?ChannelClaim,
|
activeChannelClaim: ?ChannelClaim,
|
||||||
claimIsMine: boolean,
|
|
||||||
isTopLevel: boolean,
|
isTopLevel: boolean,
|
||||||
commentModBlock: (string) => void,
|
commentModBlock: (string) => void,
|
||||||
playingUri: ?PlayingUri,
|
playingUri: ?PlayingUri,
|
||||||
|
@ -36,7 +34,6 @@ function CommentMenuList(props: Props) {
|
||||||
deleteComment,
|
deleteComment,
|
||||||
blockChannel,
|
blockChannel,
|
||||||
pinComment,
|
pinComment,
|
||||||
claimIsMine,
|
|
||||||
clearPlayingUri,
|
clearPlayingUri,
|
||||||
activeChannelClaim,
|
activeChannelClaim,
|
||||||
contentChannelPermanentUrl,
|
contentChannelPermanentUrl,
|
||||||
|
@ -61,10 +58,8 @@ function CommentMenuList(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleCommentBlock() {
|
function handleCommentBlock() {
|
||||||
if (claimIsMine) {
|
|
||||||
commentModBlock(authorUri);
|
commentModBlock(authorUri);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function handleCommentMute() {
|
function handleCommentMute() {
|
||||||
blockChannel(authorUri);
|
blockChannel(authorUri);
|
||||||
|
|
Loading…
Reference in a new issue