-
Notifications
You must be signed in to change notification settings - Fork 3.2k
LHN - When paying someone, chat preview shows "You" and also user name before payment info #60267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LHN - When paying someone, chat preview shows "You" and also user name before payment info #60267
Conversation
Reviewer Checklist
Screenshots/Videos |
src/libs/ReportUtils.ts
Outdated
const parentReportSearchAll = getReport(report?.parentReportID, allReports); | ||
const payerText = isDM(parentReportSearchAll) && translatePhraseKey === 'iou.payerPaidAmount' ? '' : payerDisplayName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have an existing parentReport
variable, so we don't need to create a new one.
const parentReportSearchAll = getReport(report?.parentReportID, allReports); | |
const payerText = isDM(parentReportSearchAll) && translatePhraseKey === 'iou.payerPaidAmount' ? '' : payerDisplayName; | |
const payerText = isDM(parentReport) && translatePhraseKey === 'iou.payerPaidAmount' ? '' : payerDisplayName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@suneox Updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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/mountiny in version: 9.1.32-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.32-8 🚀
|
…view-display-wrong-when-paying"
Revert "Merge pull request #60267 from thelullabyy/fix/59566-chat-preview-display-wrong-when-paying"
Explanation of Change
Fixed Issues
$ #59566
PROPOSAL:#59566 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android_chorme.mov
iOS: Native
ios.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
chorme.mov
MacOS: Desktop
desktop.mov