From 036dee16cddd45cfc0e110977bbca1fdb311b561 Mon Sep 17 00:00:00 2001 From: Anant Bhasin <38764067+aKn1ghtOut@users.noreply.github.com> Date: Fri, 12 Feb 2021 03:13:57 +0530 Subject: [PATCH] [FIX] Real name being ignored in SearchMessagesView (#2838) Co-authored-by: Gerzon Z Co-authored-by: Diego Mello --- app/views/SearchMessagesView/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/SearchMessagesView/index.js b/app/views/SearchMessagesView/index.js index 18380e55f..ece0c4ecb 100644 --- a/app/views/SearchMessagesView/index.js +++ b/app/views/SearchMessagesView/index.js @@ -42,7 +42,8 @@ class SearchMessagesView extends React.Component { user: PropTypes.object, baseUrl: PropTypes.string, customEmojis: PropTypes.object, - theme: PropTypes.string + theme: PropTypes.string, + useRealName: PropTypes.bool } constructor(props) { @@ -143,7 +144,9 @@ class SearchMessagesView extends React.Component { } renderItem = ({ item }) => { - const { user, baseUrl, theme } = this.props; + const { + user, baseUrl, theme, useRealName + } = this.props; return ( {}} getCustomEmoji={this.getCustomEmoji} navToRoomInfo={this.navToRoomInfo} + useRealName={useRealName} theme={theme} /> ); @@ -206,6 +210,7 @@ class SearchMessagesView extends React.Component { const mapStateToProps = state => ({ baseUrl: state.server.server, user: getUserSelector(state), + useRealName: state.settings.UI_Use_Real_Name, customEmojis: state.customEmojis });