Skip to content

Commit

Permalink
Merge pull request Expensify#40708 from bernhardoj/fix/21401-textinpu…
Browse files Browse the repository at this point in the history
…t-wont-focus-after-visiting-concierge-from-rhp

Fix composer won't focus after visiting concierge from get assistance page
  • Loading branch information
MariaHCD authored Apr 25, 2024
2 parents d6397b4 + 58576fb commit 4d5c0a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/WalletStatementModal/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function WalletStatementModal({statementPageURL, session}: WalletStatementProps)

if (type === CONST.WALLET.WEB_MESSAGE_TYPE.CONCIERGE) {
webViewRef.current.stopLoading();
Report.navigateToConciergeChat();
Report.navigateToConciergeChat(true);
}

if (type === CONST.WALLET.WEB_MESSAGE_TYPE.STATEMENT && url) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/WalletStatementModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function WalletStatementModal({statementPageURL, session}: WalletStatementProps)
}

if (event.data.type === CONST.WALLET.WEB_MESSAGE_TYPE.CONCIERGE) {
Report.navigateToConciergeChat();
Report.navigateToConciergeChat(true);
}

if (event.data.type === CONST.WALLET.WEB_MESSAGE_TYPE.STATEMENT && event.data.url) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/GetAssistancePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function GetAssistancePage({route, account}: GetAssistancePageProps) {
const menuItems: MenuItemWithLink[] = [
{
title: translate('getAssistancePage.chatWithConcierge'),
onPress: () => Report.navigateToConciergeChat(),
onPress: () => Report.navigateToConciergeChat(true),
icon: Expensicons.ChatBubble,
shouldShowRightIcon: true,
wrapperStyle: [styles.cardMenuItem],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function FinishChatCard({requiresTwoFactorAuth, reimbursementAccount}: FinishCha
const styles = useThemeStyles();
const policyID = reimbursementAccount?.achData?.policyID ?? '';
const shouldShowResetModal = reimbursementAccount.shouldShowResetModal ?? false;
const handleNavigateToConciergeChat = () => Report.navigateToConciergeChat();
const handleNavigateToConciergeChat = () => Report.navigateToConciergeChat(true);

return (
<ScrollView style={[styles.flex1]}>
Expand Down

0 comments on commit 4d5c0a4

Please sign in to comment.