diff --git a/src/components/dialogs/StarterPackDialog.tsx b/src/components/dialogs/StarterPackDialog.tsx index 86c054328b..2a77292f42 100644 --- a/src/components/dialogs/StarterPackDialog.tsx +++ b/src/components/dialogs/StarterPackDialog.tsx @@ -19,6 +19,7 @@ import { useListMembershipRemoveMutation, } from '#/state/queries/list-memberships' import {useProfileQuery} from '#/state/queries/profile' +import {useSession} from '#/state/session' import {atoms as a, native, platform, useTheme} from '#/alf' import {AvatarStack} from '#/components/AvatarStack' import {Button, ButtonIcon, ButtonText} from '#/components/Button' @@ -260,6 +261,8 @@ function StarterPackItem({ const t = useTheme() const ax = useAnalytics() const {_} = useLingui() + const {currentAccount} = useSession() + const isSelf = subject?.did === currentAccount?.did const starterPack = starterPackWithMembership.starterPack const isInPack = !!starterPackWithMembership.listItem @@ -373,11 +376,17 @@ function StarterPackItem({ label={isInPack ? _(msg`Remove`) : _(msg`Add`)} color={isInPack ? 'secondary' : 'primary_subtle'} size="tiny" - disabled={isPending} + disabled={isPending || isSelf} onPress={handleToggleMembership}> {isPending && } - {isInPack ? Remove : Add} + {isSelf ? ( + Owner + ) : isInPack ? ( + Remove + ) : ( + Add + )} diff --git a/src/view/com/profile/ProfileMenu.tsx b/src/view/com/profile/ProfileMenu.tsx index c89b2c3bf9..51edee1903 100644 --- a/src/view/com/profile/ProfileMenu.tsx +++ b/src/view/com/profile/ProfileMenu.tsx @@ -341,17 +341,15 @@ let ProfileMenu = ({ )} )} - {!isSelf && ( - - - Add to starter packs - - - - )} + + + Add to starter packs + + +