-
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 #31097 ] Chat - User taken to concierge chat page when start chat with same user from 2nd time onwards #31216
Comments
Triggered auto assignment to @mallenexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01ec45a3e6b8c6cadc |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @robertKozik ( |
Was able to reproduce, bizarre |
While solving this bug, I checked for duplicates and found #30062. I submitted a proposal on the other issue because I tested my prospal on it and it worked. Can please someone check if it is a duplicate? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Secondary login chat after redirecting to primary login -redirects user to Concierge chat What is the root cause of that problem?The App/src/libs/Navigation/NavigationRoot.js Lines 62 to 74 in fcee207
App/src/pages/home/ReportScreen.js Lines 301 to 305 in fcee207
Devices with large screen widths re-render one additional time, which allows App/src/pages/home/ReportScreen.js Lines 238 to 241 in fcee207
Finally, the root cause of the problem is that, in this specific case, devices with small screen widths only re-render twice because App/src/pages/home/ReportScreen.js Lines 307 to 331 in fcee207
What changes do you think we should make in order to solve the problem?To produce the expected result accurately, we should try to re-render the page for small devices so they mimic the control flow of the larger devices. Therefore, adding an additional condition in this |
ProposalPlease re-state the problem that we are trying to solve in this issue.User taken to concierge chat page when start chat with same user from 2nd time onwards What is the root cause of that problem?The first time the user creates a new chat with another user, it will succeed normally. The second time, it will return failure with a We have that navigation logic here. The problem is that, in here, we remove the duplicate optimistic report before the redirection completes. At the time, the report screen with the duplicate optimistic report is still mounted and this logic kicks in, causing the navigation to Concierge, because it basically looks the same as the report was removed from another device. What changes do you think we should make in order to solve the problem?We need to make sure we finish navigating to the correct report first before removing the duplicate optimistic report. We need to move this line to after this line, and run it inside
What alternative solutions did you explore? (Optional)Use a more sophisticated way to listen to the navigation completes, for example something similar to the |
@robertKozik I think we should hold this for #31097 since we're likely to change some parts that relate to this issue. |
Thanks for heads up @getusha. @mallenexpensify can we put this issue on hold until #31097 would be merged, per @getusha comment |
Thanks @getusha , put on hold pending the below, removed |
@mallenexpensify shouldn't we keep this open while it's on hold? |
Yup! Thanks @tienifr , not sure how that happened (it's wayyy more likely I forget to close an issue vs prematurely doing so) |
@mallenexpensify, @robertKozik Huh... This is 4 days overdue. Who can take care of this? |
The issue this is held on is held on another issue, so it might be a bit, bumping to |
Still double held! |
Making a monthly cuz it's double held, this is the one that needs fixing first |
Will take this as C+ |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Done @s77rt |
The linked PRs are merged. The issue is no longer reproducible. We can close this cc @mallenexpensify |
Thanks @s77rt ! |
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: 1.3.98-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
User should be taken to correct user's conversation history page
Actual Result:
User taken to concierge chat page when start chat with same user from 2nd time onwards
Note : Issue happens when start chat with a new non-existing account & users with previous chat history (2 different videos attached)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6271854_1699652358400.Issuewithnewnonexistingaccount.mp4
Bug6271854_1699652656426.Issuewithexistingchathistory.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: