From 4705b7f408753615d403de13619b9d8e48400248 Mon Sep 17 00:00:00 2001
From: RetroSunstar <57507616+RetroSunstar@users.noreply.github.com>
Date: Wed, 15 Jul 2026 23:32:18 +0100
Subject: [PATCH] Add DM button to labeller profiles (#11149)
---
src/screens/Profile/Header/ProfileHeaderLabeler.tsx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx
index 5ce90205c9..96e136da5c 100644
--- a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx
+++ b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx
@@ -25,6 +25,7 @@ import {ProfileMenu} from '#/view/com/profile/ProfileMenu'
import {atoms as a, tokens, useTheme} from '#/alf'
import {Button, ButtonText} from '#/components/Button'
import {type DialogOuterProps, useDialogControl} from '#/components/Dialog'
+import {MessageProfileButton} from '#/components/dms/MessageProfileButton'
import {
Heart2_Filled_Stroke2_Corner0_Rounded as HeartFilled,
Heart2_Stroke2_Corner0_Rounded as Heart,
@@ -240,7 +241,7 @@ export function HeaderLabelerButtons({
const t = useTheme()
const ax = useAnalytics()
const {_} = useLingui()
- const {currentAccount} = useSession()
+ const {currentAccount, hasSession} = useSession()
const requireAuth = useRequireAuth()
const playHaptic = useHaptics()
const editProfileControl = useDialogControl()
@@ -286,6 +287,11 @@ export function HeaderLabelerButtons({
})
return (
<>
+ {hasSession &&
+ !isMe &&
+ !profile.viewer?.blockedBy &&
+ !profile.viewer?.blocking && }
+
{isMe ? (
<>