Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
6214a75
Thread source report to Concierge on native so it can act on the view…
MelvinBot Aug 24, 2026
dc55f04
Fix failing checks: mock useRoute in useSidePanelContext test and fix…
MelvinBot Aug 24, 2026
768bfdd
Fix oxfmt: wrap useMemo dependency array that exceeds print width
MelvinBot Aug 24, 2026
9dd268d
Fix ESLint errors: type-only SCREENS import, typed requireActual, max…
MelvinBot Aug 24, 2026
3eba319
Fix ESLint: replace forbidden inline import() type with top-level typ…
MelvinBot Aug 24, 2026
2d7bb1f
Merge remote-tracking branch 'origin/main' into claude-conciergeNativ…
MelvinBot Aug 30, 2026
925d0c8
Thread sourceReportID through the Concierge create/open navigation path
MelvinBot Aug 31, 2026
972e760
Merge remote-tracking branch 'origin/main' into claude-conciergeNativ…
MelvinBot Sep 2, 2026
87bedf8
Group navigateToConciergeChat tail params into an options object
MelvinBot Sep 2, 2026
72e1f2a
Address review: plain comment style and justify eslint-disable
MelvinBot Sep 2, 2026
1909aeb
Address review: take a single object parameter in navigateToConcierge…
MelvinBot Sep 3, 2026
6977a7c
Merge main into claude-conciergeNativeSourceReport
MelvinBot Sep 3, 2026
42a24e1
Add blank line before native source-report comment in useSidePanelCon…
MelvinBot Sep 4, 2026
b4f98e9
Merge main into claude-conciergeNativeSourceReport
MelvinBot Sep 11, 2026
245e890
Fix: run oxfmt on src/ROUTES.ts
MelvinBot Sep 11, 2026
0dc8ea2
Merge remote-tracking branch 'origin/main' into claude-conciergeNativ…
MelvinBot Sep 11, 2026
db9fa33
Merge main into claude-conciergeNativeSourceReport
MelvinBot Sep 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2636,7 +2636,7 @@ const ROUTES = {
REPORT: 'r',
REPORT_WITH_ID: {
route: 'r/:reportID?/:reportActionID?',
getRoute: (reportID: string | undefined, reportActionID?: string, referrer?: string, backTo?: string, secureKey?: string, isPendingCreation?: boolean) => {
getRoute: (reportID: string | undefined, reportActionID?: string, referrer?: string, backTo?: string, secureKey?: string, isPendingCreation?: boolean, sourceReportID?: string) => {
if (!reportID) {
Log.warn('Invalid reportID is used to build the REPORT_WITH_ID route');
return getUrlWithBackToParam(ROUTES.HOME, backTo);
Expand All @@ -2654,6 +2654,11 @@ const ROUTES = {
if (isPendingCreation) {
queryParams.push('isPendingCreation=true');
}
// The report the user was viewing when they opened Concierge from the side-pane button (native).
// Threaded on the route so it stays scoped to this Concierge navigation entry instead of a global key.
if (sourceReportID) {
queryParams.push(`sourceReportID=${encodeURIComponent(sourceReportID)}`);
}

const queryString = queryParams.length > 0 ? `?${queryParams.join('&')}` : '';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function ConciergeLinkRenderer({tnode, style}: ConciergeLinkRendererProps) {
*/
const navigateToConciergeChat = () => {
onPressFromProps?.();
navigateToConciergeChatAction(conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas, false);
navigateToConciergeChatAction({conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas, shouldDismissModal: false});
};

// Define link style based on context
Expand Down
2 changes: 1 addition & 1 deletion src/components/SettlementButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function SettlementButton({
return;
}
pressLockedBankAccount(policy?.achAccount?.bankAccountID, translate, conciergeReportID, delegateAccountID);
navigateToConciergeChat(conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas);
navigateToConciergeChat({conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas});
});
return true;
}
Expand Down
17 changes: 16 additions & 1 deletion src/components/SidePanel/SidePanelButton/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import useSidePanelState from '@hooks/useSidePanelState';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';

import Navigation from '@libs/Navigation/Navigation';

import {navigateToConciergeChat} from '@userActions/Report';

import CONST from '@src/CONST';
Expand Down Expand Up @@ -42,7 +44,20 @@ function SidePanelButton({style}: SidePanelButtonProps) {
sentryLabel={CONST.SENTRY_LABEL.SIDE_PANEL.HELP}
accessibilityLabel={translate('common.help')}
style={[styles.flexRow, styles.touchableButtonImage, style]}
onPress={() => navigateToConciergeChat(conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas)}
onPress={() => {
// Capture the report the user is viewing (still topmost at press time) so Concierge can act on it
// after we navigate away. This is the only entry that threads a source report, so context is scoped
// to Concierge opened via this sidebar button. Search, LHN, and deep links never carry it.
const sourceReportID = Navigation.getTopmostReportId();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restrict source capture to a visible report

When Help is pressed outside the Inbox report view, such as from SearchPageHeaderNarrow/Wide or a settings/workspace TopBar, this same button still runs, while getTopmostReportId() scans the inactive Reports split navigator and returns its last-opened report. That stale ID is then sent as Concierge context, so a prompt opened from Search or settings can inspect or modify an unrelated report; only attach the source when the Reports split navigator is currently active (for example, using the already-gated central-pane helper).

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot Please verify this comment. I think this behavior occurs on web as well. If so, I don't think this is a bug

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified — dmkt9 is right. Web already behaves this way, so this isn't a bug this PR introduces.

Web's side panel context resolves to currentRHPReportID ?? currentReportID (useSidePanelContext.ts:43), and currentReportID is set from Navigation.getTopmostReportId(state) — the same ungated helper the native button calls. Opening Help from Search or settings on web sends the same last-opened report.

Evidence

1. The helper is not gated on the active navigator. getTopmostReportParams.ts:24-35 uses findLast to grab the last REPORTS_SPLIT_NAVIGATOR anywhere in the state and its last REPORT screen. It never checks whether that navigator is focused. Both platforms inherit this.

2. Web deliberately keeps the stale ID on settings. useCurrentReportID.tsx:69-75 early-returns for any Settings_ screen, with the comment "Make sure we don't make the reportID undefined when switching between the chat list and settings tab." So on web, navigating to settings preserves the previous report as the side panel's context by design — exactly the behavior flagged here.

3. Same button placement on both. TopBar.tsx:87 renders SidePanelButton for both platforms, and the only gate is shouldHideHelpButton (onboarding / anonymous / 2FA), which has nothing to do with which navigator is active.

On the suggested "already-gated central-pane helper" — that's getFocusedReportId / getFocusedReportParams, which does respect the active tab via getActiveTabRoute. Web's side panel does not use it. Switching only native to it would make native stricter than web, not consistent with it.

One genuine difference (doesn't change the verdict): native freezes sourceReportID into the route param at press time, while web re-reads currentReportID live. At the moment Help is pressed from Search or settings both resolve to the same report, so the scenario described here is identical on both.

If the ungated lookup is worth tightening, it should change both platforms together in its own PR rather than only the native path here.


view run

navigateToConciergeChat({
conciergeReportID,
introSelected,
currentUserAccountID,
isSelfTourViewed,
betas,
sourceReportID: sourceReportID && sourceReportID !== conciergeReportID ? sourceReportID : undefined,
});
}}
>
<Icon
src={Concierge}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function handleWalletStatementNavigation(
}

if (type === CONST.WALLET.WEB_MESSAGE_TYPE.CONCIERGE) {
navigateToConciergeChat(conciergeReportID, introSelected, currentUserAccountID ?? CONST.DEFAULT_NUMBER_ID, isSelfTourViewed, betas);
navigateToConciergeChat({conciergeReportID, introSelected, currentUserAccountID: currentUserAccountID ?? CONST.DEFAULT_NUMBER_ID, isSelfTourViewed, betas});
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useOpenConciergeAnywhere/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function useOpenConciergeAnywhere() {

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const openConciergeAnywhere = (_options?: {forceConcierge?: boolean; reportID?: string}) => {
navigateToConciergeChat(conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas);
navigateToConciergeChat({conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas});
};

return {openConciergeAnywhere, isInSidePanel: false};
Expand Down
6 changes: 6 additions & 0 deletions src/libs/Navigation/linkingConfig/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2272,11 +2272,17 @@ const config: LinkingOptions<RootNavigatorParamList>['config'] = {
// eslint-disable-next-line
reportID: (reportID: string | undefined) => reportID ?? '',
secureKey: (secureKey: string | undefined) => secureKey ?? '',
// parse must return a string, so an absent sourceReportID maps to an empty string, which consumers read as absent.
// eslint-disable-next-line rulesdir/no-default-id-values

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ CONSISTENCY-5 (docs)

The added // eslint-disable-next-line rulesdir/no-default-id-values (here in parse and again in stringify for sourceReportID) has no comment explaining why the rule is deliberately suppressed. Add a short justification so future maintainers know the default-empty-string is intentional for this route param.

// A missing sourceReportID must stringify/parse to '' so the route param round-trips cleanly.
// eslint-disable-next-line rulesdir/no-default-id-values
sourceReportID: (sourceReportID: string | undefined) => sourceReportID ?? '',

Reviewed at: 972e760 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot address this, this and this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 72e1f2a — added a justification above each disable (parse and stringify), explaining why the empty-string default is intentional:

// parse must return a string, so an absent sourceReportID maps to an empty string, which consumers read as absent.
// eslint-disable-next-line rulesdir/no-default-id-values
sourceReportID: (sourceReportID: string | undefined) => sourceReportID ?? '',

I kept the justification above the eslint-disable-next-line rather than below it, as your snippet shows. Note that the CONSISTENCY-5 doc's own "Correct" example puts the comment between the disable and the code — that placement silently breaks the suppression, since eslint-disable-next-line applies to the literal next line, which would be the comment. Worth fixing in the rule doc.

sourceReportID: (sourceReportID: string | undefined) => sourceReportID ?? '',
},
stringify: {
// eslint-disable-next-line
reportID: (reportID: string | undefined) => reportID ?? '',
secureKey: (secureKey: string | undefined) => secureKey ?? '',
// stringify must return a string, so an absent sourceReportID maps to an empty string, which drops it from the route.
// eslint-disable-next-line rulesdir/no-default-id-values
sourceReportID: (sourceReportID: string | undefined) => sourceReportID ?? '',
},
},
},
Expand Down
2 changes: 2 additions & 0 deletions src/libs/Navigation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2984,6 +2984,8 @@ type ReportsSplitNavigatorParamList = {
* Suppresses openReport until the report exists locally.
*/
isPendingCreation?: string;
/** The report the user was viewing when they opened Concierge from the side-pane button (native), so Concierge can act on it. */
sourceReportID?: string;
/** When 'true', a money-request report opens scrolled to its latest message instead of the top (used by the "X Replies" link). */
shouldScrollToLatest?: string;
// eslint-disable-next-line no-restricted-syntax -- `backTo` usages in this file are legacy. Do not add new `backTo` params to screens. See contributingGuides/NAVIGATION.md
Expand Down
2 changes: 1 addition & 1 deletion src/libs/actions/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ function openReportFromDeepLink(
Navigation.navigate(lastAccessedReportRoute, {forceReplace: Navigation.getTopmostReportId() === reportID, waitForTransition: true});
return;
}
navigateToConciergeChat(conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas, false, () => true);
navigateToConciergeChat({conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas, shouldDismissModal: false});
return;
}

Expand Down
96 changes: 71 additions & 25 deletions src/libs/actions/Report/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,9 @@ function addActions({
}
}

if (isInSidePanel && isConciergeChat && sidePanelContext && commandName === WRITE_COMMANDS.ADD_COMMENT) {
// The side panel is web-only. On native the same context is threaded via the Concierge route's sourceReportID
// param (see useSidePanelContext), so gate on the context being present rather than on isInSidePanel.
if (isConciergeChat && sidePanelContext && commandName === WRITE_COMMANDS.ADD_COMMENT) {
parameters.sidePanelContext = JSON.stringify(sidePanelContext);
}

Expand Down Expand Up @@ -2538,8 +2540,9 @@ function createTransactionThreadReport(params: CreateTransactionThreadReportPara
* @param reportID The ID of the report to navigate to
* @param options.shouldDismissModal Whether to dismiss the modal before navigating (defaults to true)
* @param options.afterTransition Callback to run after the navigate transition completes
* @param options.sourceReportID The report the user was viewing before this navigation, threaded onto the route (see navigateToConciergeChat)
*/
function navigateToReport(reportID: string | undefined, options?: {shouldDismissModal?: boolean; afterTransition?: () => void}) {
function navigateToReport(reportID: string | undefined, options?: {shouldDismissModal?: boolean; afterTransition?: () => void; sourceReportID?: string}) {
const shouldDismissModal = options?.shouldDismissModal ?? true;

if (shouldDismissModal) {
Expand All @@ -2556,7 +2559,7 @@ function navigateToReport(reportID: string | undefined, options?: {shouldDismiss
// In some cases when RHP modal gets hidden and then we navigate to report Composer focus breaks, wrapping navigation in setTimeout fixes this
setTimeout(() => {
Navigation.isNavigationReady().then(() => {
const route = ROUTES.REPORT_WITH_ID.getRoute(reportID);
const route = ROUTES.REPORT_WITH_ID.getRoute(reportID, undefined, undefined, undefined, undefined, undefined, options?.sourceReportID);
if (options?.afterTransition) {
Navigation.navigate(route, {afterTransition: options.afterTransition});
} else {
Expand All @@ -2582,6 +2585,8 @@ type NavigateToAndOpenReportParams = {
shouldRevalidateExistingChat?: boolean;
hasReportActions?: boolean;
linkToOptions?: LinkToOptions;
/** The report the user was viewing before this navigation, threaded onto the destination route (see navigateToConciergeChat) */
sourceReportID?: string;
};

/**
Expand All @@ -2601,6 +2606,7 @@ function navigateToAndOpenReport({
shouldRevalidateExistingChat = false,
hasReportActions,
linkToOptions,
sourceReportID,
}: NavigateToAndOpenReportParams) {
const participantAccountIDs = PersonalDetailsUtils.getAccountIDsByLogins(userLogins);
const chat = getChatByParticipants([...participantAccountIDs, currentUserAccountID]);
Expand Down Expand Up @@ -2639,7 +2645,7 @@ function navigateToAndOpenReport({
conciergeChat,
});

navigateToReport(fallbackChat.reportID, {shouldDismissModal, ...linkToOptions});
navigateToReport(fallbackChat.reportID, {shouldDismissModal, sourceReportID, ...linkToOptions});
};

if (isEmptyObject(chat) || isReportNotFound(chat)) {
Expand Down Expand Up @@ -2671,7 +2677,7 @@ function navigateToAndOpenReport({
conciergeChat,
});
}
navigateToReport(chat.reportID, {shouldDismissModal, ...linkToOptions});
navigateToReport(chat.reportID, {shouldDismissModal, sourceReportID, ...linkToOptions});
return;
}

Expand All @@ -2698,7 +2704,7 @@ function navigateToAndOpenReport({
// Re-open existing chats to re-validate server-side access and refresh stale local state. Pass hasCompletedGuidedSetupFlow
// so a pending onboarding OpenReport is enqueued here too (see the create-path assumption note above).
openReport({reportID: chat.reportID, introSelected, isSelfTourViewed, hasCompletedGuidedSetupFlow, betas, personalDetails, hasReportActions, currentUserAccountID, conciergeChat});
navigateToReport(chat.reportID, {shouldDismissModal, ...linkToOptions});
navigateToReport(chat.reportID, {shouldDismissModal, sourceReportID, ...linkToOptions});
}

type NavigateToAndCreateGroupChatParams = {
Expand Down Expand Up @@ -4439,22 +4445,61 @@ function updateWriteCapability(report: Report, newValue: WriteCapability) {
API.write(WRITE_COMMANDS.UPDATE_REPORT_WRITE_CAPABILITY, parameters, {optimisticData, failureData});
}

type NavigateToConciergeChatParams = {
/** The stored Concierge report ID, when the client already knows it. */
conciergeReportID: string | undefined;

/** The onboarding choice the user made, used when the Concierge chat has to be created. */
introSelected: OnyxEntry<IntroSelected>;

/** The account ID of the current user. */
currentUserAccountID: number;

/** Whether the user has already viewed the self tour. */
isSelfTourViewed: boolean | undefined;

/** The betas the current user is on. */
betas: OnyxEntry<Beta[]>;

/** Whether to dismiss the current modal instead of navigating on top of it. */
shouldDismissModal?: boolean;

/** Guard called after the server data is ready, so a page that unmounted in the meantime does not navigate. */
checkIfCurrentPageActive?: () => boolean;

/** Extra navigation options (for example `forceReplace` or `afterTransition`). */
linkToOptions?: LinkToOptions;

/** The report action to open the Concierge chat on. */
reportActionID?: string;

// TODO: personalDetails should be a required field in follow-up PRs https://github.com/Expensify/App/issues/73656
/** Personal details used to build the Concierge chat when it does not exist yet. */
personalDetails?: OnyxEntry<PersonalDetailsList>;

/**
* The report the user was viewing when they opened Concierge from the side-pane button (native). Threaded onto
* the Concierge route so the composer can attach it as sidePanelContext, scoped to this navigation entry.
*/
sourceReportID?: string;
};

/**
* Navigates to the 1:1 report with Concierge
*/
function navigateToConciergeChat(
conciergeReportID: string | undefined,
introSelected: OnyxEntry<IntroSelected>,
currentUserAccountID: number,
isSelfTourViewed: boolean | undefined,
betas: OnyxEntry<Beta[]>,
function navigateToConciergeChat({
conciergeReportID,
introSelected,
currentUserAccountID,
isSelfTourViewed,
betas,
shouldDismissModal = false,
checkIfCurrentPageActive = () => true,
linkToOptions?: LinkToOptions,
reportActionID?: string,
// TODO: personalDetails should be a required field in follow-up PRs https://github.com/Expensify/App/issues/73656
personalDetails?: OnyxEntry<PersonalDetailsList>,
): Promise<void> {
linkToOptions,
reportActionID,
personalDetails,
sourceReportID,
}: NavigateToConciergeChatParams): Promise<void> {
// If conciergeReportID contains a concierge report ID, we navigate to the concierge chat using the stored report ID.
// Otherwise, we would find the concierge chat and navigate to it.
// A resolved promise is returned on every branch so callers can sequence work (e.g. another API.write) to run only
Expand Down Expand Up @@ -4483,6 +4528,9 @@ function navigateToConciergeChat(
isSupportalSession: false,
shouldDismissModal,
linkToOptions,
// Thread the source report here too: on this path the Concierge chat is being found/created, and without it
// a first-time user (or any client with no cached CONCIERGE_REPORT_ID) would open Concierge with no context.
sourceReportID,
});
});
}
Expand All @@ -4495,7 +4543,7 @@ function navigateToConciergeChat(
}
return Promise.resolve();
}
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(conciergeReportID), linkToOptions);
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(conciergeReportID, undefined, undefined, undefined, undefined, undefined, sourceReportID), linkToOptions);
return Promise.resolve();
}

Expand Down Expand Up @@ -4953,18 +5001,16 @@ function navigateToConciergeChatAndDeleteReport(
Navigation.goBack();
}
const personalDetails = buildPersonalDetailsList([reportOwnerPersonalDetail, currentUserPersonalDetail, conciergePersonalDetail]);
navigateToConciergeChat(
navigateToConciergeChat({
conciergeReportID,
introSelected,
currentUserAccountID,
isSelfTourViewed,
betas,
false,
undefined,
{afterTransition: () => deleteReport(reportID, shouldDeleteChildReports)},
undefined,
shouldDismissModal: false,
linkToOptions: {afterTransition: () => deleteReport(reportID, shouldDeleteChildReports)},
personalDetails,
);
});
}

function cleanUpOptimisticPersonalDetailsForFailedChat(report: OnyxEntry<Report>, currentUserAccountID: number, optimisticPersonalDetails: OnyxEntry<PersonalDetailsList>) {
Expand Down Expand Up @@ -5262,7 +5308,7 @@ function navigateToMostRecentReport(
Navigation.goBack();
}

navigateToConciergeChat(conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas, false, () => true, {forceReplace: true});
navigateToConciergeChat({conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas, shouldDismissModal: false, linkToOptions: {forceReplace: true}});
}
}

Expand Down
10 changes: 9 additions & 1 deletion src/pages/ConciergePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ function ConciergePage() {
return;
}

navigateToConciergeChat(conciergeReportID, introSelected, session.accountID ?? CONST.DEFAULT_NUMBER_ID, isSelfTourViewed, betas, true, () => !isUnmounted.current);
navigateToConciergeChat({
conciergeReportID,
introSelected,
currentUserAccountID: session.accountID ?? CONST.DEFAULT_NUMBER_ID,
isSelfTourViewed,
betas,
shouldDismissModal: true,
checkIfCurrentPageActive: () => !isUnmounted.current,
});
});
} else {
Navigation.navigate(ROUTES.INBOX);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ReimbursementAccount/NonUSD/Finish/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function Finish() {
const handleBackButtonPress = () => {
Navigation.dismissModal();
};
const handleNavigateToConciergeChat = () => navigateToConciergeChat(conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas, true);
const handleNavigateToConciergeChat = () => navigateToConciergeChat({conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas, shouldDismissModal: true});

return (
<ScreenWrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function ConnectBankAccount({onBackButtonPress, setShouldShowConnectedVerifiedBa
const {accountID: currentUserAccountID} = useCurrentUserPersonalDetails();

const handleNavigateToConciergeChat = () => {
navigateToConciergeChat(conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas, true);
navigateToConciergeChat({conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas, shouldDismissModal: true});
};
const bankAccountState = reimbursementAccount?.achData?.state ?? '';
const pendingAction = reimbursementAccount?.pendingAction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,15 @@ function FinishChatCard({requiresTwoFactorAuth, reimbursementAccount, policy, se
});

const handleNavigateToConciergeChat = () =>
navigateToConciergeChat(
navigateToConciergeChat({
conciergeReportID,
introSelected,
currentUserAccountID,
isSelfTourViewed,
betas,
true,
undefined,
undefined,
reimbursementAccount?.achData?.ACHRequestReportActionID,
);
shouldDismissModal: true,
reportActionID: reimbursementAccount?.achData?.ACHRequestReportActionID,
});

const icons = useMemoizedLazyExpensifyIcons(['ChatBubble', 'Pencil', 'RotateLeft']);
const illustrations = useMemoizedLazyIllustrations(['ConciergeBubble']);
Expand Down
Loading
Loading