Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions app/views/SearchMessagesView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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}
Expand All @@ -154,6 +157,7 @@ class SearchMessagesView extends React.Component {
showAttachment={() => {}}
getCustomEmoji={this.getCustomEmoji}
navToRoomInfo={this.navToRoomInfo}
useRealName={useRealName}
theme={theme}
/>
);
Expand Down Expand Up @@ -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
});

Expand Down