diff options
author | Foysal Ahamed <cfaion341@gmail.com> | 2023-07-27 20:07:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 13:07:02 -0500 |
commit | 8e9b8b6b36bc5bb68737b783ae6accfd435fda8e (patch) | |
tree | 1fa9f50a69ec4a7863c5c321929e9917602fb8dd /src | |
parent | 49356700c31a1cb34c252e3aecf18561114916b9 (diff) | |
download | voidsky-8e9b8b6b36bc5bb68737b783ae6accfd435fda8e.tar.zst |
:lipstick: Hide Add to List option on own profile (#1068)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/profile/ProfileHeader.tsx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/view/com/profile/ProfileHeader.tsx b/src/view/com/profile/ProfileHeader.tsx index 11e9e74c3..b54aa64f4 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', |