@@ -27,6 +27,7 @@ import useHandleExceedMaxTaskTitleLength from '@hooks/useHandleExceedMaxTaskTitl
2727import useLocalize from '@hooks/useLocalize' ;
2828import useNetwork from '@hooks/useNetwork' ;
2929import useOnyx from '@hooks/useOnyx' ;
30+ import useReportIsArchived from '@hooks/useReportIsArchived' ;
3031import useResponsiveLayout from '@hooks/useResponsiveLayout' ;
3132import useTheme from '@hooks/useTheme' ;
3233import useThemeStyles from '@hooks/useThemeStyles' ;
@@ -217,6 +218,7 @@ function ReportActionCompose({
217218 const includesConcierge = useMemo ( ( ) => chatIncludesConcierge ( { participants : report ?. participants } ) , [ report ?. participants ] ) ;
218219 const userBlockedFromConcierge = useMemo ( ( ) => isBlockedFromConciergeUserAction ( blockedFromConcierge ) , [ blockedFromConcierge ] ) ;
219220 const isBlockedFromConcierge = useMemo ( ( ) => includesConcierge && userBlockedFromConcierge , [ includesConcierge , userBlockedFromConcierge ] ) ;
221+ const isReportArchived = useReportIsArchived ( report ?. reportID ) ;
220222
221223 const isTransactionThreadView = useMemo ( ( ) => isReportTransactionThread ( report ) , [ report ] ) ;
222224 const isExpensesReport = useMemo ( ( ) => reportTransactions && reportTransactions . length > 1 , [ reportTransactions ] ) ;
@@ -241,7 +243,7 @@ function ReportActionCompose({
241243 const shouldDisplayDualDropZone = useMemo ( ( ) => {
242244 const parentReport = getParentReport ( report ) ;
243245 const isSettledOrApproved = isSettled ( report ) || isSettled ( parentReport ) || isReportApproved ( { report} ) || isReportApproved ( { report : parentReport } ) ;
244- return ( shouldAddOrReplaceReceipt && ! isSettledOrApproved ) || ! ! temporary_getMoneyRequestOptions ( report , policy , reportParticipantIDs ) . length ;
246+ return ( shouldAddOrReplaceReceipt && ! isSettledOrApproved ) || ! ! temporary_getMoneyRequestOptions ( report , policy , reportParticipantIDs , isReportArchived ) . length ;
245247 } , [ shouldAddOrReplaceReceipt , report , policy , reportParticipantIDs ] ) ;
246248
247249 // Placeholder to display in the chat input.
0 commit comments