fix comment pinning
This commit is contained in:
parent
f6961f91fe
commit
7c7c2aa053
1 changed files with 1 additions and 2 deletions
|
@ -21,7 +21,6 @@ type Props = {
|
||||||
// --- select ---
|
// --- select ---
|
||||||
claim: ?Claim,
|
claim: ?Claim,
|
||||||
claimIsMine: boolean,
|
claimIsMine: boolean,
|
||||||
contentChannelPermanentUrl: any,
|
|
||||||
activeChannelClaim: ?ChannelClaim,
|
activeChannelClaim: ?ChannelClaim,
|
||||||
playingUri: ?PlayingUri,
|
playingUri: ?PlayingUri,
|
||||||
moderationDelegatorsById: { [string]: { global: boolean, delegators: { name: string, claimId: string } } },
|
moderationDelegatorsById: { [string]: { global: boolean, delegators: { name: string, claimId: string } } },
|
||||||
|
@ -44,7 +43,6 @@ function CommentMenuList(props: Props) {
|
||||||
commentIsMine,
|
commentIsMine,
|
||||||
commentId,
|
commentId,
|
||||||
activeChannelClaim,
|
activeChannelClaim,
|
||||||
contentChannelPermanentUrl,
|
|
||||||
isTopLevel,
|
isTopLevel,
|
||||||
isPinned,
|
isPinned,
|
||||||
playingUri,
|
playingUri,
|
||||||
|
@ -62,6 +60,7 @@ function CommentMenuList(props: Props) {
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const contentChannelClaim = getChannelFromClaim(claim);
|
const contentChannelClaim = getChannelFromClaim(claim);
|
||||||
|
const contentChannelPermanentUrl = contentChannelClaim && contentChannelClaim.permanent_url;
|
||||||
const activeModeratorInfo = activeChannelClaim && moderationDelegatorsById[activeChannelClaim.claim_id];
|
const activeModeratorInfo = activeChannelClaim && moderationDelegatorsById[activeChannelClaim.claim_id];
|
||||||
const activeChannelIsCreator = activeChannelClaim && activeChannelClaim.permanent_url === contentChannelPermanentUrl;
|
const activeChannelIsCreator = activeChannelClaim && activeChannelClaim.permanent_url === contentChannelPermanentUrl;
|
||||||
const activeChannelIsAdmin = activeChannelClaim && activeModeratorInfo && activeModeratorInfo.global;
|
const activeChannelIsAdmin = activeChannelClaim && activeModeratorInfo && activeModeratorInfo.global;
|
||||||
|
|
Loading…
Reference in a new issue