diff --git a/src/libs/OptionsListUtils.js b/src/libs/OptionsListUtils.js index 22209dbf3bdd..977a7ed37c73 100644 --- a/src/libs/OptionsListUtils.js +++ b/src/libs/OptionsListUtils.js @@ -98,7 +98,9 @@ function createOption(personalDetailList, report, draftComments, activeReportID, return { text: report ? report.reportName : personalDetail.displayName, - alternateText: (showChatPreviewLine && lastMessageText) ? lastMessageText : personalDetail.login, + alternateText: (showChatPreviewLine && lastMessageText) + ? lastMessageText + : Str.removeSMSDomain(personalDetail.login), icons: report ? report.icons : [personalDetail.avatar], tooltipText, participantsList: personalDetailList, diff --git a/src/pages/NewGroupPage.js b/src/pages/NewGroupPage.js index 1bee4f70ba61..3f7dc291be99 100644 --- a/src/pages/NewGroupPage.js +++ b/src/pages/NewGroupPage.js @@ -176,6 +176,7 @@ class NewGroupPage extends Component { const headerMessage = getHeaderMessage( this.state.personalDetails.length + this.state.recentReports.length !== 0, Boolean(this.state.userToInvite), + this.state.searchValue, maxParticipantsReached, ); return ( diff --git a/src/pages/SearchPage.js b/src/pages/SearchPage.js index 08be33ce2af5..d0f4b0492a46 100644 --- a/src/pages/SearchPage.js +++ b/src/pages/SearchPage.js @@ -133,6 +133,7 @@ class SearchPage extends Component { const headerMessage = getHeaderMessage( (this.state.recentReports.length + this.state.personalDetails.length) !== 0, Boolean(this.state.userToInvite), + this.state.searchValue, ); return (