Skip to content

Commit

Permalink
Merge pull request #24409 from dukenv0307/fix/23365
Browse files Browse the repository at this point in the history
Fix: Replies number changes for a second after deleting the parent message
  • Loading branch information
neil-marcellini committed Aug 17, 2023
2 parents ad907c7 + 6927423 commit 4eb8a38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,11 @@ function deleteReportComment(reportID, reportAction) {
];

// Update optimistic data for parent report action if the report is a child report
const optimisticParentReportData = ReportUtils.getOptimisticDataForParentReportAction(reportID, optimisticReport.lastVisibleActionCreated, CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE);
const optimisticParentReportData = ReportUtils.getOptimisticDataForParentReportAction(
originalReportID,
optimisticReport.lastVisibleActionCreated,
CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE,
);
if (!_.isEmpty(optimisticParentReportData)) {
optimisticData.push(optimisticParentReportData);
}
Expand Down

0 comments on commit 4eb8a38

Please sign in to comment.