You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-08-28] [Tracking Browser back button] [$1000] mWeb- Clicking on back button on Concierge after leaving the thread gives us access to the same thread again #20908
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staff
Send a message and then click on reply thread on the message so that a new thread page opens up
Click on header and leave the room
Notice it shows you to Concierge page
Click on back button and notice that it brings the same thread chat again that you left few moments back. If a user has left the thread, clicking on back button should have brought the user to LHN instead of giving re-access to the same thread
Expected Result:
Clicking on back button on Concierge after leaving the thread shouldn't give access to the same thread again (since the user had already decided to leave)
Actual Result:
licking on back button on Concierge after leaving the thread gives us access to the same thread again
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.2.7.6
Reproducible in staging?: yes
Reproducible in production?: yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Please re-state the problem that we are trying to solve in this issue.
mWeb- Clicking on back button on Concierge after leaving the thread gives us access to the same thread again
What is the root cause of that problem?
When user click on the back arrow in the Header view, it simply call the Navigation.goBack function which will navigate to the previous route history, then we will see the thread report again.
What changes do you think we should make in order to solve the problem?
I think in the leaveRoom action, we need to call Navigation.goBack() 2 times before navigate to Concierge report, so we will pop the thread report and thread report details route out of histories. It will also fix the bug if we click on the browser back arrow.
Looks like something related to react-navigation may have been mentioned in this issue discussion.
As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.
Please re-state the problem that we are trying to solve in this issue.
Clicking on back button on Concierge after leaving the thread shouldn't give access to the same thread again (since the user had already decided to leave)
What is the root cause of that problem?
The problem is that after pressing back it will return to the previous screen which is router /r/reportID/details because we haven't cleared the screen thread.
What changes do you think we should make in order to solve the problem?
Define function pop screen in Navigation.js
function popScreens(numberScreen = 1) {
navigationRef.current.dispatch(StackActions.pop(numberScreen));
}
In the function leaveRoom we will pop 2 screen before navigateToConciergeChat
📣 @ginsuma! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Please re-state the problem that we are trying to solve in this issue.
On mWeb, clicking on back button on Concierge after leaving the thread gives us access to the same thread again
What is the root cause of that problem?
The root cause of this issue is that, when clicking header go back button, the route state still saves previous pages(including the details page) after clicking Leave Thread, see leaveRoom, navigateToConciergeChat, and Header Navigation.goBack.
What changes do you think we should make in order to solve the problem?
We know that we want to navigate to the concierge chat when clicking Leave Thread button. After navigating to the concierge chat page from the details page, we don't want to navigate back to the details page if clicking the header go back button. Instead, we want to go back to the home page.
To fix this issue, we can reset the route state of navigation to the concierge chat when calling method leaveRoom.
changed the title [-]mWeb- Clicking on back button on Concierge after leaving the thread gives us access to the same thread again[/-][+][$1000] mWeb- Clicking on back button on Concierge after leaving the thread gives us access to the same thread again[/+]on Jun 19, 2023
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staff
Activity
melvin-bot commentedon Jun 16, 2023
Triggered auto assignment to @abekkala (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 16, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)hoangzinh commentedon Jun 16, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
mWeb- Clicking on back button on Concierge after leaving the thread gives us access to the same thread again
What is the root cause of that problem?
When user click on the back arrow in the Header view, it simply call the Navigation.goBack function which will navigate to the previous route history, then we will see the thread report again.
What changes do you think we should make in order to solve the problem?
I think in the leaveRoom action, we need to call
Navigation.goBack()2 times before navigate to Concierge report, so we will pop the thread report and thread report details route out of histories. It will also fix the bug if we click on the browser back arrow.melvin-bot commentedon Jun 16, 2023
Looks like something related to
react-navigationmay have been mentioned in this issue discussion.As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our
DeprecatedCustomActions.jsfiles should not be accepted.Feel free to drop a note in #expensify-open-source with any questions.
namhihi237 commentedon Jun 16, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Clicking on back button on Concierge after leaving the thread shouldn't give access to the same thread again (since the user had already decided to leave)
What is the root cause of that problem?
The problem is that after pressing back it will return to the previous screen which is router
/r/reportID/detailsbecause we haven't cleared the screen thread.What changes do you think we should make in order to solve the problem?
Define function pop screen in
Navigation.jsIn the function
leaveRoomwe will pop 2 screen beforenavigateToConciergeChatWhat alternative solutions did you explore? (Optional)
N/A
melvin-bot commentedon Jun 16, 2023
📣 @ginsuma! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
eh2077 commentedon Jun 17, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
On mWeb, clicking on back button on Concierge after leaving the thread gives us access to the same thread again
What is the root cause of that problem?
The root cause of this issue is that, when clicking header go back button, the route state still saves previous pages(including the details page) after clicking
Leave Thread, see leaveRoom, navigateToConciergeChat, and Header Navigation.goBack.What changes do you think we should make in order to solve the problem?
From method leaveRoom
App/src/libs/actions/Report.js
Line 1678 in 83ab016
We know that we want to navigate to the concierge chat when clicking
Leave Threadbutton. After navigating to the concierge chat page from the details page, we don't want to navigate back to the details page if clicking the header go back button. Instead, we want to go back to the home page.To fix this issue, we can reset the route state of navigation to the concierge chat when calling method leaveRoom.
To achieve this, we can
RESETsupport for method Navigation.navigateApp/src/libs/Navigation/Navigation.js
Lines 62 to 67 in 83ab016
RESET, then reset the state likeApp/src/libs/actions/Report.js
Line 1132 in 83ab016
like
If
shouldResetNavigationStateis true, then pass typeRESETto method Navigation.navigate, likeNavigation.navigate(route, 'RESET').navigateToConciergeChat(true);in method leaveRoomApp/src/libs/actions/Report.js
Line 1678 in 83ab016
Click to find the demo video
Simulator.Screen.Recording.-.iPhone.14.-.2023-06-18.at.01.20.27.mp4
What alternative solutions did you explore? (Optional)
We can also navigate to home page and reset route state of navigation when leaving thread by changing this line
App/src/libs/actions/Report.js
Line 1678 in 83ab016
to
This alternative will be applicable if the product team agrees with navigating to home page after leaving thread.
[-]mWeb- Clicking on back button on Concierge after leaving the thread gives us access to the same thread again[/-][+][$1000] mWeb- Clicking on back button on Concierge after leaving the thread gives us access to the same thread again[/+]melvin-bot commentedon Jun 19, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01448a7bf541bf3868
174 remaining items
dylanexpensify commentedon Sep 4, 2023
bump @priya-zha
priya-zha commentedon Sep 4, 2023
@dylanexpensify Accepted the offer already. Waiting for the payment. Thanks.
flaviadefaria commentedon Sep 11, 2023
@dylanexpensify just to confirm have you paid @priya-zha? I see the contract is still open but it's unclear to me if they have been paid or not.
dylanexpensify commentedon Sep 13, 2023
Payment sent!
dylanexpensify commentedon Sep 13, 2023
Contract ended!
flaviadefaria commentedon Sep 14, 2023
Perfect so closing this! Thanks!
melvin-bot commentedon Oct 15, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.