diff options
author | Corey Hulen <corey@hulen.com> | 2015-09-29 09:46:37 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-09-29 09:46:37 -0700 |
commit | 317dc0ea2655d7616bdd23dc07b011bdaf070a8e (patch) | |
tree | df81514a203c1c02a1b0931dc5a35d774cbf8c45 /web/react/components/search_results_item.jsx | |
parent | 2c11cbc266b87e7596c628b414e9229a534411a8 (diff) | |
parent | 558f8a322feba9fa22509a58a01411225c81b469 (diff) | |
download | chat-317dc0ea2655d7616bdd23dc07b011bdaf070a8e.tar.gz chat-317dc0ea2655d7616bdd23dc07b011bdaf070a8e.tar.bz2 chat-317dc0ea2655d7616bdd23dc07b011bdaf070a8e.zip |
Merge pull request #843 from rgarmsen2295/plt-138
PLT-138 Better parsing of the site's title when viewing a channel
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() { |