From 5d75bcd02e3791e6807d171fd95cd05e1364e424 Mon Sep 17 00:00:00 2001 From: gijoe0295 Date: Fri, 3 May 2024 18:11:42 +0700 Subject: [PATCH] fix: iou link in thread is wrong --- src/pages/home/report/ContextMenu/ContextMenuActions.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.tsx b/src/pages/home/report/ContextMenu/ContextMenuActions.tsx index 013bc484fc63..105eadffd436 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.tsx +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.tsx @@ -396,9 +396,10 @@ const ContextMenuActions: ContextMenuAction[] = [ return type === CONST.CONTEXT_MENU_TYPES.REPORT_ACTION && !isAttachmentTarget && !ReportActionsUtils.isMessageDeleted(reportAction); }, onPress: (closePopover, {reportAction, reportID}) => { + const originalReportID = ReportUtils.getOriginalReportID(reportID, reportAction); Environment.getEnvironmentURL().then((environmentURL) => { const reportActionID = reportAction?.reportActionID; - Clipboard.setString(`${environmentURL}/r/${reportID}/${reportActionID}`); + Clipboard.setString(`${environmentURL}/r/${originalReportID}/${reportActionID}`); }); hideContextMenu(true, ReportActionComposeFocusManager.focus); },