diff --git a/src/view/com/util/forms/PostDropdownBtn.tsx b/src/view/com/util/forms/PostDropdownBtn.tsx index 31032396f3..32520182e9 100644 --- a/src/view/com/util/forms/PostDropdownBtn.tsx +++ b/src/view/com/util/forms/PostDropdownBtn.tsx @@ -172,7 +172,7 @@ let PostDropdownBtn = ({ hidePost({uri: postUri}) }, [postUri, hidePost]) - const shouldShowLoggedOutWarning = React.useMemo(() => { + const hideInPWI = React.useMemo(() => { return !!postAuthor.labels?.find( label => label.val === '!no-unauthenticated', ) @@ -183,7 +183,7 @@ let PostDropdownBtn = ({ shareUrl(url) }, [href]) - const canEmbed = isWeb && gtMobile && !shouldShowLoggedOutWarning + const canEmbed = isWeb && gtMobile && !hideInPWI return ( @@ -215,27 +215,31 @@ let PostDropdownBtn = ({ - - {_(msg`Translate`)} - - + {(!hideInPWI || hasSession) && ( + <> + + {_(msg`Translate`)} + + - - {_(msg`Copy post text`)} - - + + {_(msg`Copy post text`)} + + + + )} { - if (shouldShowLoggedOutWarning) { + if (hideInPWI) { loggedOutWarningPromptControl.open() } else { onSharePost()