about summary refs log tree commit diff
path: root/src/view/com/profile/ProfileMenu.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-06-12 08:51:08 -0700
committerGitHub <noreply@github.com>2024-06-12 08:51:08 -0700
commit99078bbff2282ad18594a4d5a4ed5fe207c394e4 (patch)
treeff9cc55aa71de3192c333e3dede03fcf5bd44e32 /src/view/com/profile/ProfileMenu.tsx
parent4e4a7bf18f04964e545a02a2fe94ce8a9cbe8ac2 (diff)
downloadvoidsky-99078bbff2282ad18594a4d5a4ed5fe207c394e4.tar.zst
Don't show warning when sharing your own post in PWI opt-out mode (#4495)
Diffstat (limited to 'src/view/com/profile/ProfileMenu.tsx')
-rw-r--r--src/view/com/profile/ProfileMenu.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/view/com/profile/ProfileMenu.tsx b/src/view/com/profile/ProfileMenu.tsx
index 5d39e5f0f..efc249760 100644
--- a/src/view/com/profile/ProfileMenu.tsx
+++ b/src/view/com/profile/ProfileMenu.tsx
@@ -71,8 +71,11 @@ let ProfileMenu = ({
   const loggedOutWarningPromptControl = Prompt.usePromptControl()
 
   const showLoggedOutWarning = React.useMemo(() => {
-    return !!profile.labels?.find(label => label.val === '!no-unauthenticated')
-  }, [profile.labels])
+    return (
+      profile.did !== currentAccount?.did &&
+      !!profile.labels?.find(label => label.val === '!no-unauthenticated')
+    )
+  }, [currentAccount, profile])
 
   const invalidateProfileQuery = React.useCallback(() => {
     queryClient.invalidateQueries({