diff --git a/packages/desktop/src/tree/FooterControls.tsx b/packages/desktop/src/tree/FooterControls.tsx index fe80640..b0951a4 100644 --- a/packages/desktop/src/tree/FooterControls.tsx +++ b/packages/desktop/src/tree/FooterControls.tsx @@ -262,32 +262,11 @@ function OverlayConversation({ }} /> - :first-child': { - marginTop: 0, - }, - '& > *': { - marginLeft: '0 !important' as any, - marginTop: -2, - }, - }} - max={3} - > - {masterConversation.members?.map((conversationUserMember, index) => ( - - ))} - + {isSelected && ( <> @@ -331,6 +310,43 @@ function OverlayConversation({ ); } +function OverlayConversationAvatars({ + conversationUserMembers, + tunedInUserIds, + isConversationSelected, +}: { + isConversationSelected: boolean; + tunedInUserIds: string[]; + conversationUserMembers: ConversationUserMember[]; +}) { + return ( + :first-child': { + marginTop: 0, + }, + '& > *': { + marginLeft: '0 !important' as any, + marginTop: -2, + }, + }} + max={3} + > + {conversationUserMembers?.map((conversationUserMember, index) => ( + + ))} + + ); +} + function OverlayConversationAvatar({ conversationUserMember, isTunedIn, @@ -366,15 +382,13 @@ function OverlayConversationAvatar({ } return ( - (conversationUserMember._id.toString() !== user._id.toString() || isConversationSelected) && ( - - ) + ); return <>; }