@@ -439,6 +439,7 @@ type GetAlternateTextConfig = {
439439 translate ?: LocalizedTranslate ;
440440 reportAttributesDerived ?: ReportAttributesDerivedValue [ 'reports' ] ;
441441 policyTags ?: OnyxEntry < PolicyTagLists > ;
442+ conciergeReportID : string | undefined ;
442443} ;
443444
444445/**
@@ -447,7 +448,7 @@ type GetAlternateTextConfig = {
447448function getAlternateText (
448449 option : OptionData ,
449450 { showChatPreviewLine = false , forcePolicyNamePreview = false } : PreviewConfig ,
450- { isReportArchived, policy, lastActorDetails = { } , visibleReportActionsData = { } , translate, reportAttributesDerived, policyTags} : GetAlternateTextConfig ,
451+ { isReportArchived, policy, lastActorDetails = { } , visibleReportActionsData = { } , translate, reportAttributesDerived, policyTags, conciergeReportID } : GetAlternateTextConfig ,
451452) {
452453 const report = getReportOrDraftReport ( option . reportID ) ;
453454 const isAdminRoom = reportUtilsIsAdminRoom ( report ) ;
@@ -467,6 +468,7 @@ function getAlternateText(
467468 visibleReportActionsDataParam : visibleReportActionsData ,
468469 reportAttributesDerived,
469470 policyTags,
471+ conciergeReportID,
470472 } ) ;
471473 const reportPrefix = getReportSubtitlePrefix ( report ) ;
472474 const formattedLastMessageTextWithPrefix = reportPrefix + formattedLastMessageText ;
@@ -1109,6 +1111,7 @@ function createOption({
11091111 translate : translateFn ,
11101112 reportAttributesDerived,
11111113 policyTags,
1114+ conciergeReportID,
11121115 } ,
11131116 ) ;
11141117
@@ -2271,6 +2274,7 @@ function prepareReportOptionsForDisplay(
22712274 policiesCollection : OnyxCollection < Policy > ,
22722275 currentUserAccountID : number ,
22732276 config : GetValidReportsConfig ,
2277+ conciergeReportID : string | undefined ,
22742278 visibleReportActionsData : VisibleReportActionsDerivedValue = { } ,
22752279 reportAttributesDerived ?: ReportAttributesDerivedValue [ 'reports' ] ,
22762280 // eslint-disable-next-line @typescript-eslint/no-deprecated
@@ -2318,6 +2322,7 @@ function prepareReportOptionsForDisplay(
23182322 visibleReportActionsData,
23192323 reportAttributesDerived,
23202324 policyTags : reportPolicyTags ,
2325+ conciergeReportID,
23212326 } ,
23222327 ) ;
23232328 const isSelected = isReportSelected ( option , selectedOptions ) ;
@@ -2440,6 +2445,7 @@ function getValidOptions(
24402445 loginList : OnyxEntry < Login > ,
24412446 currentUserAccountID : number ,
24422447 currentUserEmail : string ,
2448+ conciergeReportID : string | undefined ,
24432449 {
24442450 excludeLogins = { } ,
24452451 excludeFromSuggestionsOnly = { } ,
@@ -2566,6 +2572,7 @@ function getValidOptions(
25662572 shouldShowGBR,
25672573 personalDetails,
25682574 } ,
2575+ conciergeReportID ,
25692576 visibleReportActionsData ,
25702577 reportAttributesDerived ,
25712578 sortedActions ,
@@ -2589,6 +2596,7 @@ function getValidOptions(
25892596 shouldShowGBR,
25902597 personalDetails,
25912598 } ,
2599+ conciergeReportID ,
25922600 visibleReportActionsData ,
25932601 reportAttributesDerived ,
25942602 sortedActions ,
@@ -2608,6 +2616,7 @@ function getValidOptions(
26082616 shouldShowGBR,
26092617 personalDetails,
26102618 } ,
2619+ conciergeReportID ,
26112620 visibleReportActionsData ,
26122621 reportAttributesDerived ,
26132622 sortedActions ,
@@ -2771,7 +2780,8 @@ function getSearchOptions({
27712780 personalDetails,
27722781 allPolicyTags,
27732782} : SearchOptionsConfig ) : Options {
2774- const optionList = getValidOptions ( options , policyCollection , draftComments , nvpDismissedProductTraining , loginList , currentUserAccountID , currentUserEmail , {
2783+ // TODO: We'll pass the conciergeReportID eventually. Refactor issue: https://github.com/Expensify/App/issues/66411
2784+ const optionList = getValidOptions ( options , policyCollection , draftComments , nvpDismissedProductTraining , loginList , currentUserAccountID , currentUserEmail , undefined , {
27752785 betas,
27762786 includeRecentReports,
27772787 includeMultipleParticipantReports : true ,
0 commit comments