no follow self (#7606)
This commit is contained in:
@@ -683,6 +683,7 @@ function Overlay({
|
|||||||
const {_} = useLingui()
|
const {_} = useLingui()
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
const {openComposer} = useComposerControls()
|
const {openComposer} = useComposerControls()
|
||||||
|
const {currentAccount} = useSession()
|
||||||
const navigation = useNavigation<NavigationProp>()
|
const navigation = useNavigation<NavigationProp>()
|
||||||
const seekingAnimationSV = useSharedValue(0)
|
const seekingAnimationSV = useSharedValue(0)
|
||||||
|
|
||||||
@@ -790,7 +791,8 @@ function Overlay({
|
|||||||
</View>
|
</View>
|
||||||
</Link>
|
</Link>
|
||||||
{/* show button based on non-reactive version, so it doesn't hide on press */}
|
{/* show button based on non-reactive version, so it doesn't hide on press */}
|
||||||
{!post.author.viewer?.following && (
|
{post.author.did !== currentAccount?.did &&
|
||||||
|
!post.author.viewer?.following && (
|
||||||
<Button
|
<Button
|
||||||
label={
|
label={
|
||||||
profile.viewer?.following
|
profile.viewer?.following
|
||||||
|
|||||||
Reference in New Issue
Block a user