@@ -40,6 +40,7 @@ import UnreadActionIndicator from '@components/UnreadActionIndicator';
4040import useLocalize from '@hooks/useLocalize' ;
4141import usePermissions from '@hooks/usePermissions' ;
4242import usePrevious from '@hooks/usePrevious' ;
43+ import useReportIsArchived from '@hooks/useReportIsArchived' ;
4344import useResponsiveLayout from '@hooks/useResponsiveLayout' ;
4445import useStyleUtils from '@hooks/useStyleUtils' ;
4546import useTheme from '@hooks/useTheme' ;
@@ -446,6 +447,7 @@ function PureReportActionItem({
446447 const isReportActionLinked = linkedReportActionID && action . reportActionID && linkedReportActionID === action . reportActionID ;
447448 const [ isReportActionActive , setIsReportActionActive ] = useState ( ! ! isReportActionLinked ) ;
448449 const isActionableWhisper = isActionableMentionWhisper ( action ) || isActionableTrackExpense ( action ) || isActionableReportMentionWhisper ( action ) ;
450+ const isReportArchived = useReportIsArchived ( report ?. reportID ) ;
449451
450452 const highlightedBackgroundColorIfNeeded = useMemo (
451453 ( ) => ( isReportActionLinked ? StyleUtils . getBackgroundColorStyle ( theme . messageHighlightBG ) : { } ) ,
@@ -667,15 +669,15 @@ function PureReportActionItem({
667669 ( ) => ( {
668670 anchor : popoverAnchorRef . current ,
669671 report,
670- reportNameValuePairs ,
672+ isReportArchived ,
671673 action,
672674 transactionThreadReport,
673675 checkIfContextMenuActive : toggleContextMenuFromActiveReportAction ,
674676 onShowContextMenu : handleShowContextMenu ,
675677 isDisabled : false ,
676678 shouldDisplayContextMenu,
677679 } ) ,
678- [ report , action , toggleContextMenuFromActiveReportAction , transactionThreadReport , handleShowContextMenu , reportNameValuePairs , shouldDisplayContextMenu ] ,
680+ [ report , action , toggleContextMenuFromActiveReportAction , transactionThreadReport , handleShowContextMenu , shouldDisplayContextMenu , isReportArchived ] ,
679681 ) ;
680682
681683 const attachmentContextValue = useMemo ( ( ) => {
0 commit comments