diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-04-04 11:09:59 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-04-04 11:09:59 -0400 |
commit | 5f3111e8809ccc4fe32cc2958da5a47fd9c09bef (patch) | |
tree | 5f84d08557797f6363fc30647967ac227eaa12b6 /webapp/components/popover_list_members.jsx | |
parent | 785553384fe96027b0e9274b6ccc8623092eda70 (diff) | |
download | chat-5f3111e8809ccc4fe32cc2958da5a47fd9c09bef.tar.gz chat-5f3111e8809ccc4fe32cc2958da5a47fd9c09bef.tar.bz2 chat-5f3111e8809ccc4fe32cc2958da5a47fd9c09bef.zip |
Fxing some channel changing issues
Diffstat (limited to 'webapp/components/popover_list_members.jsx')
-rw-r--r-- | webapp/components/popover_list_members.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/popover_list_members.jsx b/webapp/components/popover_list_members.jsx index 226a1889c..8c3c381af 100644 --- a/webapp/components/popover_list_members.jsx +++ b/webapp/components/popover_list_members.jsx @@ -6,10 +6,10 @@ import $ from 'jquery'; import UserStore from 'stores/user_store.jsx'; import {Popover, Overlay} from 'react-bootstrap'; import * as Utils from 'utils/utils.jsx'; -import * as GlobalActions from 'action_creators/global_actions.jsx'; import Constants from 'utils/constants.jsx'; import {FormattedMessage} from 'react-intl'; +import {browserHistory} from 'react-router'; import React from 'react'; @@ -35,7 +35,7 @@ export default class PopoverListMembers extends React.Component { Utils.openDirectChannelToUser( teammate, (channel, channelAlreadyExisted) => { - GlobalActions.emitChannelClickEvent(channel); + browserHistory.push(Utils.getTeamURLNoOriginFromAddressBar() + '/channels/' + channel.name); if (channelAlreadyExisted) { this.closePopover(); } |