diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-09-30 19:30:45 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-09-30 19:30:45 +0500 |
commit | 296b93076888c9b26329938bd1cf1587397c7f51 (patch) | |
tree | a37a396752971c88e13fc97d88531357ca09542e /web/react/components/search_results_item.jsx | |
parent | fb285d7b32a6c5e559277bcb32b3b7ff6889af22 (diff) | |
parent | 13ebb5fe94bfee4e529f634f02d285fa7d8c0dfc (diff) | |
download | chat-296b93076888c9b26329938bd1cf1587397c7f51.tar.gz chat-296b93076888c9b26329938bd1cf1587397c7f51.tar.bz2 chat-296b93076888c9b26329938bd1cf1587397c7f51.zip |
Merge branch 'master' of https://github.com/mattermost/platform into plt-383
Diffstat (limited to 'web/react/components/search_results_item.jsx')
-rw-r--r-- | web/react/components/search_results_item.jsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/web/react/components/search_results_item.jsx b/web/react/components/search_results_item.jsx index 32b521560..bdefdbee8 100644 --- a/web/react/components/search_results_item.jsx +++ b/web/react/components/search_results_item.jsx @@ -47,13 +47,8 @@ export default class SearchResultsItem extends React.Component { ); var postChannel = ChannelStore.get(this.props.post.channel_id); - var teammate = ''; - if (postChannel.type === 'D') { - teammate = utils.getDirectTeammate(this.props.post.channel_id).username; - } - - utils.switchChannel(postChannel, teammate); + utils.switchChannel(postChannel); } render() { |