-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] IOU - Chat reloads when clicking Message <user> after returning from IOU thread #39289
Comments
Triggered auto assignment to @luacmartins ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
We think that this bug might be related to #vip-vsp |
@luacmartins 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 |
I'll demote this to NAB, but it's something we need to fix. Making it external. |
Job added to Upwork: https://www.upwork.com/jobs/~01350a160bfffaa30f |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
Triggered auto assignment to @joekaufmanexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.app reloads when clicking on message while the user report being open in the background What is the root cause of that problem?on clicking on What changes do you think we should make in order to solve the problem?we should just dismiss the modal incase the target report is open in the background: to achieve that, we should pass the current Line 221 in 78efe2f
onPress={() => ReportActions.navigateToAndOpenReportWithAccountIDs([accountID], report?.reportID)} and then check if the reportID is the same or not before opening the report in this line App/src/libs/actions/Report.ts Line 852 in be315d6
function navigateToAndOpenReportWithAccountIDs(participantAccountIDs: number[], currentReportID?: string) {
let newChat: ReportUtils.OptimisticChatReport | EmptyObject = {};
const chat = ReportUtils.getChatByParticipants(participantAccountIDs);
if (!chat) {
newChat = ReportUtils.buildOptimisticChatReport(participantAccountIDs);
}
const report = chat ?? newChat;
if (currentReportID && report.reportID !== currentReportID) {
// We want to pass newChat here because if anything is passed in that param (even an existing chat), we will try to create a chat on the server
openReport(report.reportID, '', [], newChat, '0', false, participantAccountIDs);
}
Navigation.dismissModalWithReport(report);
} POCScreen.Recording.2024-04-01.at.7.49.53.PM.mov |
@abzokhattab Can you reproduce on latest main now? Screen.Recording.2024-04-02.at.09.48.33.mov |
yes still reproducible it doesnt reload but it keeps sending Screen.Recording.2024-04-02.at.4.56.03.AM.mov |
Can you declare your test steps? It seems working fine on my end :/ |
Yes, it doesn't reload as shown in the video but it sends a redundant backend request To reproduce the previous behavior:
This raises the question: Do we actually need to display the "Message XXX" item if the report is already opened in the background? I believe it's redundant in this case because it's already open. |
I'm observing the same behavior across dev, staging, and prod; it calls |
Yeah, I think it's fine that we display this even if the report is open in the background (as long as it's working, which it sounds like it is). Closing for now, but LMK if anyone disagrees. |
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.4.58-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Chat will not reload when clicking Message since it will lead to the same page
Actual Result:
Chat reloads when clicking Message after returning from thread
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6431952_1711738623625.bandicam_2024-03-30_02-52-11-679.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: