Skip to content

Commit

Permalink
Merge pull request #45683 from hungvu193/fix-45669
Browse files Browse the repository at this point in the history
Format message for olddot action
  • Loading branch information
arosiclair authored Jul 22, 2024
2 parents ac9cdae + 5a22379 commit bd8c58b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3322,6 +3322,11 @@ function getReportActionMessage(reportAction: OnyxEntry<ReportAction>, reportID?
if (reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.HOLD) {
return Localize.translateLocal('iou.heldExpense');
}

if (reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.EXPORTED_TO_INTEGRATION) {
return ReportActionsUtils.getExportIntegrationLastMessageText(reportAction);
}

if (reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.UNHOLD) {
return Localize.translateLocal('iou.unheldExpense');
}
Expand Down Expand Up @@ -3375,6 +3380,10 @@ function getReportName(report: OnyxEntry<Report>, policy?: OnyxEntry<Policy>, pa
return formatReportLastMessageText(formattedName);
}

if (!isEmptyObject(parentReportAction) && ReportActionsUtils.isOldDotReportAction(parentReportAction)) {
return ReportActionsUtils.getMessageOfOldDotReportAction(parentReportAction);
}

if (parentReportActionMessage?.isDeletedParentAction) {
return Localize.translateLocal('parentReportAction.deletedMessage');
}
Expand Down

0 comments on commit bd8c58b

Please sign in to comment.