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/channel_header.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/channel_header.jsx')
-rw-r--r-- | webapp/components/channel_header.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/channel_header.jsx b/webapp/components/channel_header.jsx index 482aabc01..16d9ea536 100644 --- a/webapp/components/channel_header.jsx +++ b/webapp/components/channel_header.jsx @@ -26,10 +26,10 @@ import * as Utils from 'utils/utils.jsx'; import * as TextFormatting from 'utils/text_formatting.jsx'; import * as AsyncClient from 'utils/async_client.jsx'; import * as Client from 'utils/client.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'; const ActionTypes = Constants.ActionTypes; @@ -106,7 +106,7 @@ export default class ChannelHeader extends React.Component { }); const townsquare = ChannelStore.getByName('town-square'); - GlobalActions.emitChannelClickEvent(townsquare); + browserHistory.push(Utils.getTeamURLNoOriginFromAddressBar() + '/channels/' + townsquare.name); }, (err) => { AsyncClient.dispatchError(err, 'handleLeave'); |