@@ -12,6 +12,7 @@ import ConfirmModal from '@components/ConfirmModal';
1212import DecisionModal from '@components/DecisionModal' ;
1313import FlatList from '@components/FlatList' ;
1414import { AUTOSCROLL_TO_TOP_THRESHOLD } from '@components/InvertedFlatList/BaseInvertedFlatList' ;
15+ import { usePersonalDetails } from '@components/OnyxListItemProvider' ;
1516import { PressableWithFeedback } from '@components/Pressable' ;
1617import { useSearchContext } from '@components/Search/SearchContext' ;
1718import Text from '@components/Text' ;
@@ -44,7 +45,7 @@ import {
4445 shouldReportActionBeVisible ,
4546 wasMessageReceivedWhileOffline ,
4647} from '@libs/ReportActionsUtils' ;
47- import { canUserPerformWriteAction , chatIncludesChronosWithID , getReportLastVisibleActionCreated , isUnread } from '@libs/ReportUtils' ;
48+ import { canUserPerformWriteAction , chatIncludesChronosWithID , getOriginalReportID , getReportLastVisibleActionCreated , isUnread } from '@libs/ReportUtils' ;
4849import markOpenReportEnd from '@libs/Telemetry/markOpenReportEnd' ;
4950import { isTransactionPendingDelete } from '@libs/TransactionUtils' ;
5051import Visibility from '@libs/Visibility' ;
@@ -141,6 +142,13 @@ function MoneyRequestReportActionsList({
141142 selector : ( parentReportActions ) => getParentReportAction ( parentReportActions , report ?. parentReportActionID ) ,
142143 } ) ;
143144
145+ const [ userWalletTierName ] = useOnyx ( ONYXKEYS . USER_WALLET , { selector : ( wallet ) => wallet ?. tierName , canBeMissing : false } ) ;
146+ const [ isUserValidated ] = useOnyx ( ONYXKEYS . ACCOUNT , { selector : ( account ) => account ?. validated , canBeMissing : true } ) ;
147+ const [ userBillingFundID ] = useOnyx ( ONYXKEYS . NVP_BILLING_FUND_ID , { canBeMissing : true } ) ;
148+ const personalDetails = usePersonalDetails ( ) ;
149+ const [ emojiReactions ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS_REACTIONS } ` , { canBeMissing : true } ) ;
150+ const [ draftMessage ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS_DRAFTS } ` , { canBeMissing : true } ) ;
151+
144152 const transactionsWithoutPendingDelete = useMemo ( ( ) => transactions . filter ( ( t ) => ! isTransactionPendingDelete ( t ) ) , [ transactions ] ) ;
145153 const mostRecentIOUReportActionID = useMemo ( ( ) => getMostRecentIOURequestActionID ( reportActions ) , [ reportActions ] ) ;
146154 const transactionThreadReportID = getOneTransactionThreadReportID ( report , chatReport , reportActions ?? [ ] , false , reportTransactionIDs ) ;
@@ -471,6 +479,12 @@ function MoneyRequestReportActionsList({
471479 ! isConsecutiveChronosAutomaticTimerAction ( visibleReportActions , index , chatIncludesChronosWithID ( reportAction ?. reportID ) ) &&
472480 hasNextActionMadeBySameActor ( visibleReportActions , index ) ;
473481
482+ const actionEmojiReactions = emojiReactions ?. [ `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS_REACTIONS } ${ reportAction . reportActionID } ` ] ;
483+ const originalReportID = getOriginalReportID ( report . reportID , reportAction ) ;
484+ const reportDraftMessages = draftMessage ?. [ `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS_DRAFTS } ${ originalReportID } ` ] ;
485+ const matchingDraftMessage = reportDraftMessages ?. [ reportAction . reportActionID ] ;
486+ const matchingDraftMessageString = typeof matchingDraftMessage === 'string' ? matchingDraftMessage : matchingDraftMessage ?. message ;
487+
474488 return (
475489 < ReportActionsListItemRenderer
476490 allReports = { allReports }
@@ -489,6 +503,12 @@ function MoneyRequestReportActionsList({
489503 isFirstVisibleReportAction = { firstVisibleReportActionID === reportAction . reportActionID }
490504 shouldHideThreadDividerLine
491505 linkedReportActionID = { linkedReportActionID }
506+ userWalletTierName = { userWalletTierName }
507+ isUserValidated = { isUserValidated }
508+ personalDetails = { personalDetails }
509+ userBillingFundID = { userBillingFundID }
510+ emojiReactions = { actionEmojiReactions }
511+ draftMessage = { matchingDraftMessageString }
492512 />
493513 ) ;
494514 } ,
@@ -504,6 +524,12 @@ function MoneyRequestReportActionsList({
504524 linkedReportActionID ,
505525 allReports ,
506526 policies ,
527+ userWalletTierName ,
528+ isUserValidated ,
529+ personalDetails ,
530+ userBillingFundID ,
531+ emojiReactions ,
532+ draftMessage ,
507533 ] ,
508534 ) ;
509535
0 commit comments