[CP Staging] Revert "Open linked message at top - 2"#94804
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: abc02307ae
ℹ️ 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".
| if (targetIndex <= 0) { | ||
| return {displayedData: data, onStartReached, maintainVisibleContentPosition}; |
There was a problem hiding this comment.
Keep retrying until the linked action is present
When a report already has some cached actions but is still loading the requested linked/unread action, targetIndex is -1 here, so the hook falls back to the full data set while the effect above still clears isInitialRender on the next RAF. Because useReportActionsScroll skips the normal initial scroll whenever initialScrollKey is set, once OpenReport later inserts the target action this hook never re-enters the slice/MVCP handoff, and the report can open at the cached bottom instead of the linked message. This regresses linked-message/unread opens for cold or partially cached reports where the target is not present on the first render.
Useful? React with 👍 / 👎.
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
…ure/92152-open-linked-message-top [CP Staging] Revert "Open linked message at top - 2" (cherry picked from commit 7351dc2) (cherry-picked to staging by mountiny)
|
Straight revert not emergency |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.21-5 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.21-9 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.22-1 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.24-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.4.24-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.24-0 🚀
|
Reverts #94671
### Fixed issues
$ #94741
$ #94745
$ #94751
$ #94753