-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2024-08-29] [$250] iOS - Thread - Back button in the main chat reopens main chat after leaving thread #46123
Comments
Triggered auto assignment to @garrettmknight ( |
We think that this bug might be related to #wvip-vsp |
@garrettmknight FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Thread - Back button in the main chat reopens main chat after leaving thread What is the root cause of that problem?We are navigating to last accessed report after leaving room here App/src/libs/actions/Report.ts Lines 2790 to 2791 in a79189f
Which is the main chat from which the thread was created. Therefore, when we navigate back we navigate to main chat once again as it existed in the navigation route state even before leaving thread. What changes do you think we should make in order to solve the problem?This behaviour is expected for leaving room but for leaving chat thread we should only App/src/libs/actions/Report.ts Lines 2790 to 2791 in a79189f
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.App reopens the main chat What is the root cause of that problem?After leaving the thread, we call App/src/libs/actions/Report.ts Line 2790 in bf69d5d
In the detail implementation of App/src/libs/actions/Report.ts Line 2663 in bf69d5d
In this case, What changes do you think we should make in order to solve the problem?We should call goBack to remove the current route, then go to the correspond
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing the back button after leaving a thread shows the main chat again. What is the root cause of that problem?When we leave a thread, we already call dismiss modal to close the RHP first, App/src/pages/ReportDetailsPage.tsx Lines 219 to 227 in 98eb1bb
the leaveChat then calls navigateToMostRecentReport to perform goBack with a fallback route of the main chat report. App/src/libs/actions/Report.ts Lines 2660 to 2663 in 98eb1bb
In an ideal case, the RHP is already closed and the goBack with the fallback route will pop every report screen until it's arrived at the fallback route. App/src/libs/Navigation/Navigation.ts Lines 230 to 239 in 98eb1bb
However, in this case, the RHP is still in the nav state stack, so the goBack will replace the RHP with the main chat report. App/src/libs/Navigation/Navigation.ts Lines 222 to 225 in 98eb1bb
What changes do you think we should make in order to solve the problem?We need to delay the navigation like we did in #44537.
or use setTimeout/InteractionManager/useWaitForNavigate hook |
Job added to Upwork: https://www.upwork.com/jobs/~014c369a294716b5b5 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Triggered auto assignment to @jliexpensify ( |
@jliexpensify I'm headed out until August 5th. I'll pick this back up when I'm back. Thanks for your help in the meantime! |
No worries! Bumping @eVoloshchak for reviews please. |
@garrettmknight, @eVoloshchak, @jliexpensify Huh... This is 4 days overdue. Who can take care of this? |
Bumping @eVoloshchak for reviews! Also bumping on Slack. |
I think we should proceed with @bernhardoj's proposal, this is the easiest and most reliable approach 🎀👀🎀 C+ reviewed! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.23-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-08-29. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Garrett is back! Unassigning myself |
Payment Summary
BugZero Checklist (@garrettmknight)
|
Payment summary looks right to me:
|
Requested in ND. |
Regression Test Proposal
Do we agree 👍 or 👎 |
Dropping to weekly while @eVoloshchak request payment. |
$250 approved for @eVoloshchak |
$250 approved for @bernhardoj |
@JmillsExpensify did you get the request from @bernhardoj too? |
@JmillsExpensify bump |
Yes, I did. I updated my comment above. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.11-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4760347
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
App will return to LHN
Actual Result:
App reopens the main chat
Workaround:
Unknwon
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6551503_1721825710340.ScreenRecording_07-24-2024_20-48-43_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknight / @jliexpensifyThe text was updated successfully, but these errors were encountered: