LHN doesn't show the message sent or the system message#64733
LHN doesn't show the message sent or the system message#64733deetergp merged 2 commits intoExpensify:mainfrom
Conversation
|
@QichenZhu 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] |
|
Fix deploy blocker in 64650 Screen.Recording.2025-06-23.at.18.45.11.mov |
| const chatReport = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${report?.chatReportID}`]; | ||
| // If the report is a one-transaction report, get the last message text from combined report actions so the LHN can display modifications to the transaction thread or the report itself | ||
| const transactionThreadReportID = getOneTransactionThreadReportID(report, chatReport, allSortedReportActions[reportID]); | ||
| if (transactionThreadReportID && !lastMessageTextFromReport && lastReportAction) { |
There was a problem hiding this comment.
App/src/libs/OptionsListUtils.ts
Line 866 in 432c8ab
App/src/libs/OptionsListUtils.ts
Line 871 in 432c8ab
Is it better to move the !lastMessageTextFromReoprt && lastReportAction conditions to the outer if statement, like in line 866 and 871 above?
There was a problem hiding this comment.
@QichenZhu Oh right. Thanks for bringing that up. I update
|
I can't test on iOS because the app crashes. Will retest tomorrow. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-native.mp4Android: mWeb Chromeandroid-web.mp4iOS: HybridAppios-native.mp4iOS: mWeb Safariios-web.mp4MacOS: Chrome / Safarimac-web.movMacOS: Desktopmac-desktop.mov |
|
@thelullabyy, good job! This fixes the original issue and doesn't reintroduce the regressions from the previous PR. Just the test steps need improvement:
|
|
@QichenZhu I updated. Please help to check. Thanks |
|
✋ 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/deetergp in version: 9.1.75-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.76-5 🚀
|
Explanation of Change
Fixed Issues
$#62991
PROPOSAL:#62991 (comment)
Tests
Offline tests
QA Steps
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))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.mov
Android: mWeb Chrome
android_web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios_safari.mov
MacOS: Chrome / Safari
chorme.mov
MacOS: Desktop
desktop.mov