diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-09-28 16:31:18 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-09-29 08:51:36 -0700 |
commit | 558f8a322feba9fa22509a58a01411225c81b469 (patch) | |
tree | ed1eeaaedc64f0a17d43b732eb02ef9ad5772dd8 /web/react/components/search_results_item.jsx | |
parent | 5b67abf34bccee1425b980675865319eb3c7602c (diff) | |
download | chat-558f8a322feba9fa22509a58a01411225c81b469.tar.gz chat-558f8a322feba9fa22509a58a01411225c81b469.tar.bz2 chat-558f8a322feba9fa22509a58a01411225c81b469.zip |
Removed unused title update code
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() { |