From 8e9b8b6b36bc5bb68737b783ae6accfd435fda8e Mon Sep 17 00:00:00 2001 From: Foysal Ahamed Date: Thu, 27 Jul 2023 20:07:02 +0200 Subject: [PATCH] :lipstick: Hide Add to List option on own profile (#1068) --- src/view/com/profile/ProfileHeader.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/view/com/profile/ProfileHeader.tsx b/src/view/com/profile/ProfileHeader.tsx index 11e9e74c..b54aa64f 100644 --- a/src/view/com/profile/ProfileHeader.tsx +++ b/src/view/com/profile/ProfileHeader.tsx @@ -261,14 +261,15 @@ const ProfileHeaderLoaded = observer( label: 'Share', onPress: onPressShare, }, - { - testID: 'profileHeaderDropdownListAddRemoveBtn', - label: 'Add to Lists', - onPress: onPressAddRemoveLists, - }, ] if (!isMe) { items.push({sep: true}) + // Only add "Add to Lists" on other user's profiles, doesn't make sense to mute my own self! + items.push({ + testID: 'profileHeaderDropdownListAddRemoveBtn', + label: 'Add to Lists', + onPress: onPressAddRemoveLists, + }) if (!view.viewer.blocking) { items.push({ testID: 'profileHeaderDropdownMuteBtn',