💄 Hide Add to List option on own profile (#1068)

zio/stable
Foysal Ahamed 2023-07-27 20:07:02 +02:00 committed by GitHub
parent 49356700c3
commit 8e9b8b6b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -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',