@@ -101,6 +101,8 @@ function Expensify() {
101101 const [ isSidebarLoaded ] = useOnyx ( ONYXKEYS . IS_SIDEBAR_LOADED , { canBeMissing : true } ) ;
102102 const [ screenShareRequest ] = useOnyx ( ONYXKEYS . SCREEN_SHARE_REQUEST , { canBeMissing : true } ) ;
103103 const [ lastVisitedPath ] = useOnyx ( ONYXKEYS . LAST_VISITED_PATH , { canBeMissing : true } ) ;
104+ const [ currentOnboardingPurposeSelected ] = useOnyx ( ONYXKEYS . ONBOARDING_PURPOSE_SELECTED , { canBeMissing : true } ) ;
105+ const [ currentOnboardingCompanySize ] = useOnyx ( ONYXKEYS . ONBOARDING_COMPANY_SIZE , { canBeMissing : true } ) ;
104106
105107 useDebugShortcut ( ) ;
106108
@@ -204,12 +206,12 @@ function Expensify() {
204206 // If the app is opened from a deep link, get the reportID (if exists) from the deep link and navigate to the chat report
205207 Linking . getInitialURL ( ) . then ( ( url ) => {
206208 setInitialUrl ( url as Route ) ;
207- Report . openReportFromDeepLink ( url ?? '' ) ;
209+ Report . openReportFromDeepLink ( url ?? '' , currentOnboardingPurposeSelected , currentOnboardingCompanySize ) ;
208210 } ) ;
209211
210212 // Open chat report from a deep link (only mobile native)
211213 Linking . addEventListener ( 'url' , ( state ) => {
212- Report . openReportFromDeepLink ( state . url ) ;
214+ Report . openReportFromDeepLink ( state . url , currentOnboardingPurposeSelected , currentOnboardingCompanySize ) ;
213215 } ) ;
214216 if ( CONFIG . IS_HYBRID_APP ) {
215217 HybridAppModule . onURLListenerAdded ( ) ;
0 commit comments