@@ -43,6 +43,7 @@ import {
4343 canShowReportRecipientLocalTime ,
4444 chatIncludesChronos ,
4545 chatIncludesConcierge ,
46+ getParentReport ,
4647 getReportRecipientAccountIDs ,
4748 isAdminRoom ,
4849 isAnnounceRoom ,
@@ -51,6 +52,7 @@ import {
5152 isGroupChat ,
5253 isInvoiceReport ,
5354 isReportTransactionThread ,
55+ isSettled ,
5456 isUserCreatedPolicyRoom ,
5557} from '@libs/ReportUtils' ;
5658import { getTransactionID , hasReceipt as hasReceiptTransactionUtils } from '@libs/TransactionUtils' ;
@@ -219,6 +221,7 @@ function ReportActionCompose({
219221 const includesConcierge = useMemo ( ( ) => chatIncludesConcierge ( { participants : report ?. participants } ) , [ report ?. participants ] ) ;
220222 const userBlockedFromConcierge = useMemo ( ( ) => isBlockedFromConciergeUserAction ( blockedFromConcierge ) , [ blockedFromConcierge ] ) ;
221223 const isBlockedFromConcierge = useMemo ( ( ) => includesConcierge && userBlockedFromConcierge , [ includesConcierge , userBlockedFromConcierge ] ) ;
224+ const parentReport = useMemo ( ( ) => getParentReport ( report ) , [ report ] ) ;
222225 const shouldDisplayDualDropZone = useMemo (
223226 ( ) =>
224227 ! isChatRoom ( report ) &&
@@ -227,8 +230,10 @@ function ReportActionCompose({
227230 ! isAdminRoom ( report ) &&
228231 ! isConciergeChatReport ( report ) &&
229232 ! isInvoiceReport ( report ) &&
230- ! isGroupChat ( report ) ,
231- [ report ] ,
233+ ! isGroupChat ( report ) &&
234+ ! isSettled ( parentReport ) &&
235+ ! isSettled ( report ) ,
236+ [ report , parentReport ] ,
232237 ) ;
233238 const isTransactionThreadView = useMemo ( ( ) => isReportTransactionThread ( report ) , [ report ] ) ;
234239 const transactionID = useMemo ( ( ) => getTransactionID ( reportID ) , [ reportID ] ) ;
0 commit comments