diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index 8700327a168a..1521b6b34af5 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -131,6 +131,8 @@ function ReportActionItem(props) { const textInputRef = useRef(); const popoverAnchorRef = useRef(); const downloadedPreviews = useRef([]); + const originalReportID = ReportUtils.getOriginalReportID(props.report.reportID, props.action); + const originalReport = props.report.reportID === originalReportID ? props.report : ReportUtils.getReport(originalReportID); useEffect( () => () => { @@ -213,7 +215,6 @@ function ReportActionItem(props) { } setIsContextMenuActive(true); - const selection = SelectionScraper.getCurrentSelection(); ReportActionContextMenu.showContextMenu( ContextMenuActions.CONTEXT_MENU_TYPES.REPORT_ACTION, @@ -225,11 +226,11 @@ function ReportActionItem(props) { props.draftMessage, () => {}, toggleContextMenuFromActiveReportAction, - ReportUtils.isArchivedRoom(props.report), - ReportUtils.chatIncludesChronos(props.report), + ReportUtils.isArchivedRoom(originalReport), + ReportUtils.chatIncludesChronos(originalReport), ); }, - [props.draftMessage, props.action, props.report, toggleContextMenuFromActiveReportAction], + [props.draftMessage, props.action, props.report.reportID, toggleContextMenuFromActiveReportAction, originalReport], ); const toggleReaction = useCallback( @@ -540,11 +541,11 @@ function ReportActionItem(props) {