Skip to content

Commit

Permalink
Merge pull request #30997 from bernhardoj/fix/29570-search-option-sub…
Browse files Browse the repository at this point in the history
…title

Fix there is no subtitle on search option for a policy expense chat thread
  • Loading branch information
flodnv authored Nov 9, 2023
2 parents de53c0c + 41a51b2 commit 64155e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,10 @@ function createOption(accountIDs, personalDetails, report, reportActions = {}, {
});
}

if (result.isChatRoom || result.isPolicyExpenseChat) {
result.alternateText = showChatPreviewLine && !forcePolicyNamePreview && lastMessageText ? lastMessageText : subtitle;
} else if (result.isMoneyRequestReport) {
if (result.isThread || result.isMoneyRequestReport) {
result.alternateText = lastMessageTextFromReport.length > 0 ? lastMessageText : Localize.translate(preferredLocale, 'report.noActivityYet');
} else if (result.isChatRoom || result.isPolicyExpenseChat) {
result.alternateText = showChatPreviewLine && !forcePolicyNamePreview && lastMessageText ? lastMessageText : subtitle;
} else if (result.isTaskReport) {
result.alternateText = showChatPreviewLine && lastMessageText ? lastMessageTextFromReport : Localize.translate(preferredLocale, 'report.noActivityYet');
} else {
Expand Down

0 comments on commit 64155e7

Please sign in to comment.