From 6b1391624da2c59323eb6301e7e05a989208318c Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Wed, 20 Dec 2023 21:52:38 +0700 Subject: [PATCH 1/2] enable reply in thread for iou whisper action --- src/pages/home/report/ContextMenu/ContextMenuActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.js b/src/pages/home/report/ContextMenu/ContextMenuActions.js index 3682ef602a2b..1f82e71ef5f1 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.js +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.js @@ -148,7 +148,7 @@ export default [ const isTaskAction = ReportActionsUtils.isTaskAction(reportAction); const isWhisperAction = ReportActionsUtils.isWhisperAction(reportAction); return ( - !isWhisperAction && + (!isWhisperAction || reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.IOU || isReportPreviewAction) && (isCommentAction || isReportPreviewAction || isIOUAction || isModifiedExpenseAction || isTaskAction) && !ReportUtils.isThreadFirstChat(reportAction, reportID) ); From 102154717acb6e3e7b9bba0c8e254c01c2da259c Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Wed, 20 Dec 2023 22:52:03 +0700 Subject: [PATCH 2/2] use isIOUAction variable --- src/pages/home/report/ContextMenu/ContextMenuActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.js b/src/pages/home/report/ContextMenu/ContextMenuActions.js index 1f82e71ef5f1..2e51ef714562 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.js +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.js @@ -148,7 +148,7 @@ export default [ const isTaskAction = ReportActionsUtils.isTaskAction(reportAction); const isWhisperAction = ReportActionsUtils.isWhisperAction(reportAction); return ( - (!isWhisperAction || reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.IOU || isReportPreviewAction) && + (!isWhisperAction || isIOUAction || isReportPreviewAction) && (isCommentAction || isReportPreviewAction || isIOUAction || isModifiedExpenseAction || isTaskAction) && !ReportUtils.isThreadFirstChat(reportAction, reportID) );