-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix paid system message thread does not show up on LHN #44594
Changes from 6 commits
1a5cb78
c9a9779
5e9225e
d591fc2
d95df9b
f0e6713
0a08cbb
5b7cf37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -88,13 +88,17 @@ function getOrderedReportIDs( | |||||
return; | ||||||
} | ||||||
const reportActions = allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.reportID}`] ?? {}; | ||||||
const parentReportAction = | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, it's basically the same as deprecated getParentReportAction which I guess gonna be deprecated in the future, but I updated it to not block the merge. |
||||||
report.parentReportID && report.parentReportActionID | ||||||
? allReportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.parentReportID}`]?.find((reportAction) => reportAction.reportActionID === report.parentReportActionID) | ||||||
: undefined; | ||||||
const doesReportHaveViolations = OptionsListUtils.shouldShowViolations(report, betas ?? [], transactionViolations); | ||||||
const isHidden = report.notificationPreference === CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN; | ||||||
const isFocused = report.reportID === currentReportId; | ||||||
const allReportErrors = OptionsListUtils.getAllReportErrors(report, reportActions) ?? {}; | ||||||
const hasErrorsOtherThanFailedReceipt = | ||||||
doesReportHaveViolations || Object.values(allReportErrors).some((error) => error?.[0] !== Localize.translateLocal('iou.error.genericSmartscanFailureMessage')); | ||||||
if (ReportUtils.isOneTransactionThread(report.reportID, report.parentReportID ?? '0')) { | ||||||
if (ReportUtils.isOneTransactionThread(report.reportID, report.parentReportID ?? '0', parentReportAction as ReportAction)) { | ||||||
return; | ||||||
} | ||||||
if (hasErrorsOtherThanFailedReceipt) { | ||||||
|
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.
Updated the function to return false for sent money action so we can continue the review immediately after it comes off hold.