Notification preference: return hidden if empty - #78763
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 24 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-16.at.14.56.36.movAndroid: mWeb ChromeiOS: HybridAppScreen.Recording.2026-01-16.at.14.55.33.moviOS: mWeb SafariScreen.Recording.2026-01-16.at.14.53.48.movMacOS: Chrome / SafariScreen.Recording.2026-01-16.at.14.51.40.mov |
|
@s77rt Could you help merge main? |
|
Merged main |
|
@s77rt Lines 1489 to 1494 in e94f05d However, in the case of this bug, as you can see, a
|
|
Hmm actually yeah I think 2 makes the most sense. I will need to double check that |
|
Closing this in favor of https://github.com/Expensify/Auth/pull/19321. Thanks @truph01 |
|
Actually we can't just stop sending |
|
@truph01 Can you please continue test/review the PR as is |
|
The PR looks good. @QichenZhu, would you mind taking a look at this PR since you are C+ for the original issue? |
|
Is this expected? After clearing the cache, the group chat disappeared from the LHN. Screen.Recording.2026-02-02.at.8.28.04.PM.mov |
There was a problem hiding this comment.
(Neil's AI Agent)
LGTM! The fix correctly handles the case where notificationPreference is an empty string by using || instead of ??. The empty string should be treated as falsy and default to hidden, which is the expected behavior. Good unit test coverage as well.
Neil
I have manually reviewed this PR as well.
|
@QichenZhu Interesting! I think that could be a backend issue, it seems that the report is seen as empty since no report action is returned. But I also see a 1:1 chat but is displayed in LHN still. I will handle this separately so let's not block on this |
|
Merged with the PR reviewer checklist action pending since it was previously fully posted. |
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.3.11-19 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.12-1 🚀
|


Explanation of Change
If user has no notification preference set (i.e. empty) then return
hiddenwhich is the default.Fixed Issues
$ #63355
PROPOSAL:
Tests
Screen.Recording.2026-01-02.at.1.05.20.AM.mov
Offline tests
Same as Tests
QA Steps
Same as Tests
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari