Public room not display in LHN after anon user login from a thread of public room#91931
Conversation
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.
|
|
@hungvu193 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3049ade856
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| RAM_ONLY_IS_CHECKING_PUBLIC_ROOM: 'isCheckingPublicRoom', | ||
|
|
||
| /** The report ID of the public room that the user is currently viewing */ | ||
| RAM_ONLY_VIEWING_PUBLIC_ROOM_REPORT_ID: 'ramOnlyViewingPublicRoomReportID', |
There was a problem hiding this comment.
Register the viewing public room key as RAM-only
This new key is named and used as transient state, but it is not added to ramOnlyKeys in src/setup/index.ts (I checked the Onyx init list there). As a result, the last public room ID can be persisted across reloads/sessions, and joinPublicRoomIfNeeded() may later call openReport() for a stale room when an anonymous user signs in from an unrelated route. Please add this key to the Onyx RAM-only configuration or otherwise clear it after use.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
I renamed the key. And this is cleared when we sign out and only set for anonymous user so it's safe.
|
@MelvinBot Assign me to this PR since I'm the C+ of original issue. |
|
Done — assigned you to this PR, |
|
@MelvinBot Add me to the reviewer of this PR. |
|
Done — added you as a reviewer, |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-06-01.at.12.44.36.movAndroid: mWeb ChromeScreen.Recording.2026-06-01.at.12.46.55.moviOS: HybridAppiOS: mWeb SafariScreen.Recording.2026-06-01.at.10.28.59.movMacOS: Chrome / SafariScreen.Recording.2026-06-01.at.10.23.03.mov |
|
@nkdengineer I'm not able to test on IOS native 🤔 , do you face the same issue? Screen.Recording.2026-06-01.at.10.45.20.mov |
|
@hungvu193 I got the error like this on IOS native. Screen.Recording.2026-06-02.at.15.25.18.mov |
|
@nkdengineer Can you double check if we also get this issue one main? |
JmillsExpensify
left a comment
There was a problem hiding this comment.
LGTM though for the record, I don't think we should spend time on this.
|
@hungvu193 It works now. |
|
🚧 @blimpich has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/blimpich in version: 9.3.99-0 🚀
Bundle Size Analysis (Sentry): |
Help site review — no changes requiredI reviewed this PR against the help site articles under Why: This is a bug fix that restores intended behavior. The change tracks the public room report ID while an anonymous user is viewing a public room (or one of its threads), then re-fetches that report after the user signs in so the public room appears in the LHN as expected. It introduces no new feature, no new UI, no renamed labels/tabs/buttons, and no change to any documented user-facing workflow. Review details
Since no help site changes are needed, I did not create a draft docs PR. @hungvu193, please confirm you agree that no help site changes are required for this PR. If you believe a documentation update is warranted, let me know what behavior should be documented and I'll create the draft PR. |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.3.99-9 🚀
|

Explanation of Change
Public room not display in LHN after anon user login from a thread of public room
Fixed Issues
$ #90536
PROPOSAL: #90536 (comment)
Tests
Offline tests
QA Steps
Same as test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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.2026-05-28.at.15.14.17.mov
Android: mWeb Chrome
Screen.Recording.2026-05-28.at.15.20.15.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2026-05-28.at.15.18.46.mov
MacOS: Chrome / Safari
Screen.Recording.2026-05-28.at.15.12.10.mov