summaryrefslogtreecommitdiffstats
path: root/webapp/components/removed_from_channel_modal.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-04-04 11:09:59 -0400
committerChristopher Speller <crspeller@gmail.com>2016-04-04 11:09:59 -0400
commit5f3111e8809ccc4fe32cc2958da5a47fd9c09bef (patch)
tree5f84d08557797f6363fc30647967ac227eaa12b6 /webapp/components/removed_from_channel_modal.jsx
parent785553384fe96027b0e9274b6ccc8623092eda70 (diff)
downloadchat-5f3111e8809ccc4fe32cc2958da5a47fd9c09bef.tar.gz
chat-5f3111e8809ccc4fe32cc2958da5a47fd9c09bef.tar.bz2
chat-5f3111e8809ccc4fe32cc2958da5a47fd9c09bef.zip
Fxing some channel changing issues
Diffstat (limited to 'webapp/components/removed_from_channel_modal.jsx')
-rw-r--r--webapp/components/removed_from_channel_modal.jsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/webapp/components/removed_from_channel_modal.jsx b/webapp/components/removed_from_channel_modal.jsx
index 45018ac99..d037c089d 100644
--- a/webapp/components/removed_from_channel_modal.jsx
+++ b/webapp/components/removed_from_channel_modal.jsx
@@ -6,9 +6,10 @@ import ReactDOM from 'react-dom';
import ChannelStore from 'stores/channel_store.jsx';
import UserStore from 'stores/user_store.jsx';
import BrowserStore from 'stores/browser_store.jsx';
-import * as GlobalActions from 'action_creators/global_actions.jsx';
+import * as Utils from 'utils/utils.jsx';
import {FormattedMessage} from 'react-intl';
+import {browserHistory} from 'react-router';
import React from 'react';
@@ -33,7 +34,11 @@ export default class RemovedFromChannelModal extends React.Component {
}
var townSquare = ChannelStore.getByName('town-square');
- setTimeout(() => GlobalActions.emitChannelClickEvent(townSquare), 1);
+ setTimeout(
+ () => {
+ browserHistory.push(Utils.getTeamURLNoOriginFromAddressBar() + '/channels/' + townSquare.name);
+ },
+ 1);
this.setState(newState);
}