Skip to content

Commit

Permalink
Merge pull request #35128 from s-alves10/fix/issue-35090
Browse files Browse the repository at this point in the history
fix: show parent action message or deleted message
  • Loading branch information
Joel Bettner authored Jan 25, 2024
2 parents 83a7535 + 999d576 commit 50d91ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,7 @@ function isChangeLogObject(originalMessage?: ChangeLog): ChangeLog | undefined {
*/
function getAdminRoomInvitedParticipants(parentReportAction: ReportAction | Record<string, never>, parentReportActionMessage: string) {
if (!parentReportAction?.originalMessage) {
return '';
return parentReportActionMessage || Localize.translateLocal('parentReportAction.deletedMessage');
}
const originalMessage = isChangeLogObject(parentReportAction.originalMessage);
const participantAccountIDs = originalMessage?.targetAccountIDs ?? [];
Expand Down
2 changes: 1 addition & 1 deletion src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ function navigateToAndOpenChildReport(childReportID = '0', parentReportAction: P
parentReport?.policyID ?? CONST.POLICY.OWNER_EMAIL_FAKE,
CONST.POLICY.OWNER_ACCOUNT_ID_FAKE,
false,
'',
parentReport?.policyName ?? '',
undefined,
undefined,
ReportUtils.getChildReportNotificationPreference(parentReportAction),
Expand Down

0 comments on commit 50d91ab

Please sign in to comment.