@@ -195,6 +195,7 @@ type ContextMenuActionPayload = {
195195 anchorRef ?: RefObject < View | null > ;
196196 moneyRequestAction : ReportAction | undefined ;
197197 card ?: Card ;
198+ originalReport : OnyxEntry < ReportType > ;
198199} ;
199200
200201type OnPress = ( closePopover : boolean , payload : ContextMenuActionPayload , selection ?: string , reportID ?: string , draftMessage ?: string ) => void ;
@@ -492,7 +493,7 @@ const ContextMenuActions: ContextMenuAction[] = [
492493 // If return value is true, we switch the `text` and `icon` on
493494 // `ContextMenuItem` with `successText` and `successIcon` which will fall back to
494495 // the `text` and `icon`
495- onPress : ( closePopover , { reportAction, transaction, selection, report, reportID, card} ) => {
496+ onPress : ( closePopover , { reportAction, transaction, selection, report, reportID, card, originalReport } ) => {
496497 const isReportPreviewAction = isReportPreviewActionReportActionsUtils ( reportAction ) ;
497498 const messageHtml = getActionHtml ( reportAction ) ;
498499 const messageText = getReportActionMessageText ( reportAction ) ;
@@ -669,7 +670,7 @@ const ContextMenuActions: ContextMenuAction[] = [
669670 } else if ( isActionOfType ( reportAction , CONST . REPORT . ACTIONS . TYPE . POLICY_CHANGE_LOG . UPDATE_MANUAL_APPROVAL_THRESHOLD ) ) {
670671 setClipboardMessage ( getUpdatedManualApprovalThresholdMessage ( reportAction ) ) ;
671672 } else if ( isMovedAction ( reportAction ) ) {
672- setClipboardMessage ( getMovedActionMessage ( reportAction ) ) ;
673+ setClipboardMessage ( getMovedActionMessage ( reportAction , originalReport ) ) ;
673674 } else if ( reportAction ?. actionName === CONST . REPORT . ACTIONS . TYPE . CHANGE_POLICY ) {
674675 const displayMessage = getPolicyChangeMessage ( reportAction ) ;
675676 Clipboard . setString ( displayMessage ) ;
0 commit comments