Unverified Commit 036dee16 authored by Anant Bhasin's avatar Anant Bhasin Committed by GitHub
Browse files

[FIX] Real name being ignored in SearchMessagesView (#2838)



Co-authored-by: default avatarGerzon Z <gerzonc@icloud.com>
Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent 4d9410ad
......@@ -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 (
<Message
item={item}
......@@ -154,6 +157,7 @@ class SearchMessagesView extends React.Component {
showAttachment={() => {}}
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
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment