Skip to content

Commit f4089c0

Browse files
authored
Merge pull request #37051 from brunovjk/fix/34003
Never show 'You manually marked this report as reimbursed' message on NewDot.
2 parents ad509be + c6a5c7d commit f4089c0

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/libs/ReportActionsUtils.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -803,14 +803,6 @@ function getMemberChangeMessageFragment(reportAction: OnyxEntry<ReportAction>):
803803
};
804804
}
805805

806-
/**
807-
* MARKEDREIMBURSED reportActions come from marking a report as reimbursed in OldDot. For now, we just
808-
* concat all of the text elements of the message to create the full message.
809-
*/
810-
function getMarkedReimbursedMessage(reportAction: OnyxEntry<ReportAction>): string {
811-
return reportAction?.message?.map((element) => element.text).join('') ?? '';
812-
}
813-
814806
function getMemberChangeMessagePlainText(reportAction: OnyxEntry<ReportAction>): string {
815807
const messageElements = getMemberChangeMessageElements(reportAction);
816808
return messageElements.map((element) => element.content).join('');
@@ -938,7 +930,6 @@ export {
938930
hasRequestFromCurrentAccount,
939931
getFirstVisibleReportActionID,
940932
isMemberChangeAction,
941-
getMarkedReimbursedMessage,
942933
getMemberChangeMessageFragment,
943934
getMemberChangeMessagePlainText,
944935
isReimbursementDeQueuedAction,

src/pages/home/report/ReportActionItem.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,6 @@ function ReportActionItem(props) {
464464
children = <ReportActionItemBasicMessage message={ReportUtils.getReimbursementDeQueuedActionMessage(props.action, props.report)} />;
465465
} else if (props.action.actionName === CONST.REPORT.ACTIONS.TYPE.MODIFIEDEXPENSE) {
466466
children = <ReportActionItemBasicMessage message={ModifiedExpenseMessage.getForReportAction(props.report.reportID, props.action)} />;
467-
} else if (props.action.actionName === CONST.REPORT.ACTIONS.TYPE.MARKEDREIMBURSED) {
468-
children = <ReportActionItemBasicMessage message={ReportActionsUtils.getMarkedReimbursedMessage(props.action)} />;
469467
} else if (props.action.actionName === CONST.REPORT.ACTIONS.TYPE.HOLD) {
470468
children = <ReportActionItemBasicMessage message={props.translate('iou.heldRequest', {comment: lodashGet(props, 'action.message[1].text', '')})} />;
471469
} else if (props.action.actionName === CONST.REPORT.ACTIONS.TYPE.UNHOLD) {

0 commit comments

Comments
 (0)