Skip to content

Commit

Permalink
Merge pull request #19902 from dhairyasenjaliya/editMessagePositionFix
Browse files Browse the repository at this point in the history
Fix replay component position while editing message
  • Loading branch information
MonilBhavsar authored Jun 5, 2023
2 parents 50fbe9a + 2d7f60a commit 5269e2a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,13 @@ function ReportActionItem(props) {

const shouldDisplayThreadReplies = hasReplies && props.action.childCommenterCount && !ReportUtils.isThreadFirstChat(props.action, props.report.reportID);
const oldestFourEmails = lodashGet(props.action, 'childOldestFourEmails', '').split(',');
const draftMessageRightAlign = props.draftMessage ? styles.chatItemReactionsDraftRight : {};

return (
<>
{children}
{hasReactions && (
<View style={props.draftMessage ? styles.chatItemReactionsDraftRight : {}}>
<View style={draftMessageRightAlign}>
<ReportActionItemReactions
reportActionID={props.action.reportActionID}
reactions={reactions}
Expand All @@ -347,13 +348,15 @@ function ReportActionItem(props) {
</View>
)}
{shouldDisplayThreadReplies && (
<ReportActionItemThread
childReportID={`${props.action.childReportID}`}
numberOfReplies={numberOfThreadReplies}
mostRecentReply={`${props.action.childLastVisibleActionCreated}`}
isHovered={hovered}
icons={ReportUtils.getIconsForParticipants(oldestFourEmails, props.personalDetails)}
/>
<View style={draftMessageRightAlign}>
<ReportActionItemThread
childReportID={`${props.action.childReportID}`}
numberOfReplies={numberOfThreadReplies}
mostRecentReply={`${props.action.childLastVisibleActionCreated}`}
isHovered={hovered}
icons={ReportUtils.getIconsForParticipants(oldestFourEmails, props.personalDetails)}
/>
</View>
)}
</>
);
Expand Down

0 comments on commit 5269e2a

Please sign in to comment.