Skip to content

Commit

Permalink
Merge pull request #33207 from tienifr/fix/32101
Browse files Browse the repository at this point in the history
Fix: Message header disappears when delete message in offline
  • Loading branch information
Julesssss authored Dec 20, 2023
2 parents 7298819 + 37e01bc commit 635eed9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ function ReportActionsList({
index={index}
report={report}
linkedReportActionID={linkedReportActionID}
sortedReportActions={sortedReportActions}
displayAsGroup={ReportActionsUtils.isConsecutiveActionMadeByPreviousActor(sortedReportActions, index)}
mostRecentIOUReportActionID={mostRecentIOUReportActionID}
shouldHideThreadDividerLine={shouldHideThreadDividerLine}
shouldDisplayNewMarker={shouldDisplayNewMarker(reportAction, index)}
Expand Down
8 changes: 4 additions & 4 deletions src/pages/home/report/ReportActionsListItemRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const propTypes = {
/** Report for this action */
report: reportPropTypes.isRequired,

/** Sorted actions prepared for display */
sortedReportActions: PropTypes.arrayOf(PropTypes.shape(reportActionPropTypes)).isRequired,
/** Should the comment have the appearance of being grouped with the previous comment? */
displayAsGroup: PropTypes.bool.isRequired,

/** The ID of the most recent IOU report action connected with the shown report */
mostRecentIOUReportActionID: PropTypes.string,
Expand All @@ -44,7 +44,7 @@ function ReportActionsListItemRenderer({
reportAction,
index,
report,
sortedReportActions,
displayAsGroup,
mostRecentIOUReportActionID,
shouldHideThreadDividerLine,
shouldDisplayNewMarker,
Expand All @@ -68,7 +68,7 @@ function ReportActionsListItemRenderer({
report={report}
action={reportAction}
linkedReportActionID={linkedReportActionID}
displayAsGroup={ReportActionsUtils.isConsecutiveActionMadeByPreviousActor(sortedReportActions, index)}
displayAsGroup={displayAsGroup}
shouldDisplayNewMarker={shouldDisplayNewMarker}
shouldShowSubscriptAvatar={
(ReportUtils.isPolicyExpenseChat(report) || ReportUtils.isExpenseReport(report)) &&
Expand Down

0 comments on commit 635eed9

Please sign in to comment.