fix: Duplicate Self DM chat displayed in LHN after unreporting an expense#77727
Conversation
… LHN after unreporting an expense""
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@bernhardoj Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
|
||
| if (!affectedReport) { | ||
| return; | ||
| continue; |
There was a problem hiding this comment.
Is this to fix the regression? If yes, can you explain why it happens and how this fix it?
There was a problem hiding this comment.
With our change, the selfDMReport is undefined, then this function returned early here. That is the reason the regression happens.
There was a problem hiding this comment.
If affectedReport is undefined, we should skip updating the total/violation logic below instead of returning early here.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.mp4Android: mWeb Chromeandroid.mweb.mp4iOS: HybridAppios.mp4iOS: mWeb Safariios.mweb.mp4MacOS: Chrome / Safariweb.mp4 |
|
@nkdengineer can we please update the PR title to remove the "revert" and CP staging part? Also, we don't need to add a test case for #77584 because the 1st test case already covered it. |
bernhardoj
left a comment
There was a problem hiding this comment.
LGTM besides the review above
|
@bernhardoj Updated. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.2.82-0 🚀
|
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.2.84-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.84-8 🚀
|
Explanation of Change
fix: Duplicate Self DM chat displayed in LHN after unreporting an expense
Fixed Issues
$ #74793
#77584
PROPOSAL: #74793 (comment)
Tests
Offline tests
Same
QA Steps
Same as test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2025-12-08.at.14.18.50.mov
Android: mWeb Chrome
Screen.Recording.2025-12-08.at.14.16.59.mov
iOS: Native
Screen.Recording.2025-12-08.at.14.19.35.mov
iOS: mWeb Safari
Screen.Recording.2025-12-08.at.14.20.16.mov
MacOS: Chrome / Safari
Screen.Recording.2025-12-08.at.14.14.50.mov
Screen.Recording.2025-12-17.at.11.53.04.mov