summaryrefslogtreecommitdiffstats
path: root/web/react/components/search_results_item.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-09-29 09:46:37 -0700
committerCorey Hulen <corey@hulen.com>2015-09-29 09:46:37 -0700
commit317dc0ea2655d7616bdd23dc07b011bdaf070a8e (patch)
treedf81514a203c1c02a1b0931dc5a35d774cbf8c45 /web/react/components/search_results_item.jsx
parent2c11cbc266b87e7596c628b414e9229a534411a8 (diff)
parent558f8a322feba9fa22509a58a01411225c81b469 (diff)
downloadchat-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.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() {