summaryrefslogtreecommitdiffstats
path: root/web/react/components/search_results_item.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-09-28 16:31:18 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-09-29 08:51:36 -0700
commit558f8a322feba9fa22509a58a01411225c81b469 (patch)
treeed1eeaaedc64f0a17d43b732eb02ef9ad5772dd8 /web/react/components/search_results_item.jsx
parent5b67abf34bccee1425b980675865319eb3c7602c (diff)
downloadchat-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.jsx7
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() {