-
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
mWeb - Group chat - After removing member, admin leaving group chat app crashes #48072
Comments
Triggered auto assignment to @cristipaval ( |
Triggered auto assignment to @puneetlath ( |
👋 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:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.After removing member, admin leaving group chat app crashes. What is the root cause of that problem?
App/src/pages/home/report/ReportActionItem.tsx Lines 182 to 187 in 4822d91
That fails the line here even though we have a safeguard for Line 288 in 1ea6781
Lines 283 to 285 in 1ea6781
What changes do you think we should make in order to solve the problem?Check type of Lines 283 to 285 in 1ea6781
|
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when leaving a group chat as the last member. What is the root cause of that problem?The error comes when we try to extract the emoji from the draft message here because the App/src/pages/home/report/ReportActionItemMessageEdit.tsx Lines 103 to 106 in 9ddca5c
Lines 282 to 288 in 9ddca5c
The reason it's an empty object is that after we leave the group, the report is deleted, and App/src/pages/home/ReportScreen.tsx Lines 169 to 172 in 9ddca5c
so, when we try to fetch the draft, it fetches the onyx collection (reportActionsDrafts_) which is an empty object because we don't have any draft. App/src/pages/home/report/ReportActionItem.tsx Lines 181 to 187 in 9ddca5c
What changes do you think we should make in order to solve the problem?Use App/src/pages/home/report/ReportActionItem.tsx Lines 181 to 182 in 9ddca5c
OR Don't default to an empty string App/src/pages/home/ReportScreen.tsx Lines 169 to 172 in 9ddca5c
|
@bernhardoj could you also find the offending PR? |
It happens after #47866 |
PR is ready! |
@cristipaval confirmed it's fixed on staging. Demoting. |
This issue has not been updated in over 15 days. @puneetlath, @cristipaval, @bernhardoj eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Does anyone need to be paid out here? |
Yes, I think it's only me |
Is it this PR? #48096 Looks like @hungvu193 reviewed that? |
Ah yes but it's regression so no payment needed for me |
Ok thanks for the clarifications. Payment summary:
|
Requested in ND |
$250 approved for @bernhardoj |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.25-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: https://expensify.testrail.io/index.php?/tests/view/4895730
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
After removing member, admin leaving group chat app must not crash.
Actual Result:
After removing member, admin leaving group chat app crashes.
Workaround:
Unknown
Platforms:
Screenshots/Videos
2708_2.txt
Bug6583856_1724733050917.sh.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: