From b433b4ff34eeafba0933a55b13ed6bc0736a3f42 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 17 Apr 2026 20:41:50 +0300 Subject: [PATCH] hide profile badges when in left panel --- .../Messages/components/ChatListItem.tsx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/screens/Messages/components/ChatListItem.tsx b/src/screens/Messages/components/ChatListItem.tsx index 01de080936..33ad37e8b0 100644 --- a/src/screens/Messages/components/ChatListItem.tsx +++ b/src/screens/Messages/components/ChatListItem.tsx @@ -51,6 +51,7 @@ import {Text} from '#/components/Typography' import {useAnalytics} from '#/analytics' import {IS_NATIVE} from '#/env' import type * as bsky from '#/types/bsky' +import {useIsWithinSplitView} from './splitView/context' export const ChatListItemPortal = createPortalGroup() @@ -118,6 +119,7 @@ function DirectChatItem({ }) { const {t: l} = useLingui() const profile = useProfileShadow(convo.primaryMember) + const {isWithinLeftPanel} = useIsWithinSplitView() const moderation = useMemo( () => moderateProfile(profile, moderationOpts), @@ -156,11 +158,13 @@ function DirectChatItem({ isBlockedAccount={moderation.blocked} showProfileBadges postAlerts={ - + isWithinLeftPanel ? null : ( + + ) }> {children} @@ -496,7 +500,7 @@ function BaseChatItem({ {showProfileBadges && primaryProfile && ( )} @@ -548,6 +552,8 @@ function BaseChatItem({ )} + {postAlerts} + {LastMessageIcon && ( - {postAlerts} - {children}