diff options
author | dan <dan.abramov@gmail.com> | 2024-06-13 11:03:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 11:03:31 +0200 |
commit | 498e46ae4e698e5a75dec9972209fe2bb8a2a603 (patch) | |
tree | 4c93e7460600f9789f8871b281b00511d19b4d6d /src | |
parent | 7faa1d9131fc28e1c0acd4b4c7b7c2bbeabc2281 (diff) | |
download | voidsky-498e46ae4e698e5a75dec9972209fe2bb8a2a603.tar.zst |
Hide bio and social proof for blocked users (#4504)
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Profile/Header/ProfileHeaderStandard.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/Profile/Header/ProfileHeaderStandard.tsx index f8a87a68e..4ad84ac63 100644 --- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx +++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx @@ -75,6 +75,10 @@ let ProfileHeaderStandard = ({ const [_queueBlock, queueUnblock] = useProfileBlockMutationQueue(profile) const unblockPromptControl = Prompt.usePromptControl() const requireAuth = useRequireAuth() + const isBlockedUser = + profile.viewer?.blocking || + profile.viewer?.blockedBy || + profile.viewer?.blockingByList const onPressEditProfile = React.useCallback(() => { track('ProfileHeader:EditProfileButtonClicked') @@ -257,7 +261,7 @@ let ProfileHeaderStandard = ({ <ProfileHeaderDisplayName profile={profile} moderation={moderation} /> <ProfileHeaderHandle profile={profile} /> </View> - {!isPlaceholderProfile && ( + {!isPlaceholderProfile && !isBlockedUser && ( <> <ProfileHeaderMetrics profile={profile} /> {descriptionRT && !moderation.ui('profileView').blur ? ( @@ -274,6 +278,7 @@ let ProfileHeaderStandard = ({ ) : undefined} {!isMe && + !isBlockedUser && shouldShowKnownFollowers(profile.viewer?.knownFollowers) && ( <View style={[a.flex_row, a.align_center, a.gap_sm, a.pt_md]}> <KnownFollowers |