diff --git a/ts/components/conversation/message/message-content/MessageAvatar.tsx b/ts/components/conversation/message/message-content/MessageAvatar.tsx index aa0dc5f17..1cbe2dde8 100644 --- a/ts/components/conversation/message/message-content/MessageAvatar.tsx +++ b/ts/components/conversation/message/message-content/MessageAvatar.tsx @@ -38,10 +38,10 @@ export type MessageAvatarSelectorProps = Pick< 'sender' | 'isSenderAdmin' | 'lastMessageOfSeries' >; -type Props = { messageId: string; hideAvatar: boolean; isPrivate: boolean }; +type Props = { messageId: string; hideAvatar: boolean; isPrivate: boolean; isDetailView?: boolean }; export const MessageAvatar = (props: Props) => { - const { messageId, hideAvatar, isPrivate } = props; + const { messageId, hideAvatar, isPrivate, isDetailView } = props; const dispatch = useDispatch(); const selectedConvoKey = useSelectedConversationKey(); @@ -143,7 +143,7 @@ export const MessageAvatar = (props: Props) => { }} > - {isSenderAdmin && } + {!isDetailView && isSenderAdmin ? : null} ); }; diff --git a/ts/components/conversation/message/message-content/MessageContent.tsx b/ts/components/conversation/message/message-content/MessageContent.tsx index 98b509a8a..9b85263f6 100644 --- a/ts/components/conversation/message/message-content/MessageContent.tsx +++ b/ts/components/conversation/message/message-content/MessageContent.tsx @@ -176,6 +176,7 @@ export const MessageContent = (props: Props) => { messageId={props.messageId} hideAvatar={hideAvatar} isPrivate={selectedIsPrivate} + isDetailView={props.isDetailView} />