|
|
@ -94,7 +94,7 @@ export const MessageContentWithStatuses = (props: Props) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const { conversationType, direction, isDeleted } = contentProps;
|
|
|
|
const { conversationType, direction, isDeleted } = contentProps;
|
|
|
|
const isIncoming = direction === 'incoming';
|
|
|
|
const isIncoming = direction === 'incoming';
|
|
|
|
const noAvatar = conversationType !== 'group' || direction === 'outgoing';
|
|
|
|
const hideAvatar = conversationType !== 'group' || direction === 'outgoing';
|
|
|
|
|
|
|
|
|
|
|
|
const [popupReaction, setPopupReaction] = useState('');
|
|
|
|
const [popupReaction, setPopupReaction] = useState('');
|
|
|
|
|
|
|
|
|
|
|
@ -120,7 +120,7 @@ export const MessageContentWithStatuses = (props: Props) => {
|
|
|
|
onDoubleClickCapture={onDoubleClickReplyToMessage}
|
|
|
|
onDoubleClickCapture={onDoubleClickReplyToMessage}
|
|
|
|
data-testid={dataTestId}
|
|
|
|
data-testid={dataTestId}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<MessageAvatar messageId={messageId} noAvatar={noAvatar} />
|
|
|
|
<MessageAvatar messageId={messageId} hideAvatar={hideAvatar} />
|
|
|
|
<MessageStatus
|
|
|
|
<MessageStatus
|
|
|
|
dataTestId="msg-status-incoming"
|
|
|
|
dataTestId="msg-status-incoming"
|
|
|
|
messageId={messageId}
|
|
|
|
messageId={messageId}
|
|
|
@ -150,7 +150,7 @@ export const MessageContentWithStatuses = (props: Props) => {
|
|
|
|
popupReaction={popupReaction}
|
|
|
|
popupReaction={popupReaction}
|
|
|
|
setPopupReaction={setPopupReaction}
|
|
|
|
setPopupReaction={setPopupReaction}
|
|
|
|
onPopupClick={handlePopupClick}
|
|
|
|
onPopupClick={handlePopupClick}
|
|
|
|
noAvatar={noAvatar}
|
|
|
|
noAvatar={hideAvatar}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</StyledMessageContentContainer>
|
|
|
|
</StyledMessageContentContainer>
|
|
|
|