Skip to content

Commit

Permalink
Merge pull request #49518 from Krishna2323/krishna2323/issue/49330
Browse files Browse the repository at this point in the history
fix: [Search v2.3] - Default name is not displayed correctly for multiline system message thread.
  • Loading branch information
luacmartins authored Sep 24, 2024
2 parents 06a59ad + f577c7d commit 9d051a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Search/SearchPageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function HeaderWrapper({icon, title, subtitle, children, subtitleStyles = {}}: H
}
subtitle={
<Text
numberOfLines={2}
numberOfLines={1}
style={[styles.textLarge, subtitleStyles]}
>
{subtitle}
Expand Down
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3755,9 +3755,9 @@ function getReportName(
return `${reportActionMessage} (${Localize.translateLocal('common.archived')})`;
}
if (!isEmptyObject(parentReportAction) && ReportActionsUtils.isModifiedExpenseAction(parentReportAction)) {
return ModifiedExpenseMessage.getForReportAction(report?.reportID, parentReportAction);
const modifiedMessage = ModifiedExpenseMessage.getForReportAction(report?.reportID, parentReportAction);
return formatReportLastMessageText(modifiedMessage);
}

if (isTripRoom(report)) {
return report?.reportName ?? '';
}
Expand Down

0 comments on commit 9d051a7

Please sign in to comment.