summaryrefslogtreecommitdiffstats
path: root/web/react/components/removed_from_channel_modal.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-10-08 09:51:04 -0700
committerCorey Hulen <corey@hulen.com>2015-10-08 09:51:04 -0700
commite36227405b4bc44fe3cea52f2082c723a91366ea (patch)
tree78f585a8ae7d0da8afc4a5ca03d00302df99c34f /web/react/components/removed_from_channel_modal.jsx
parent26252ccebf23d8e0ce6cd0f6b79b268e5c3b90fd (diff)
parent70144962522a5d8db1c46cbd93d83e64b8ca778b (diff)
downloadchat-e36227405b4bc44fe3cea52f2082c723a91366ea.tar.gz
chat-e36227405b4bc44fe3cea52f2082c723a91366ea.tar.bz2
chat-e36227405b4bc44fe3cea52f2082c723a91366ea.zip
Merge pull request #978 from mattermost/plt-355
PLT-355 Fixing ability to dynamicly update members list.
Diffstat (limited to 'web/react/components/removed_from_channel_modal.jsx')
-rw-r--r--web/react/components/removed_from_channel_modal.jsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/react/components/removed_from_channel_modal.jsx b/web/react/components/removed_from_channel_modal.jsx
index b7ec85457..4cbb8fc82 100644
--- a/web/react/components/removed_from_channel_modal.jsx
+++ b/web/react/components/removed_from_channel_modal.jsx
@@ -26,13 +26,13 @@ export default class RemovedFromChannelModal extends React.Component {
BrowserStore.removeItem('channel-removed-state');
}
+ var townSquare = ChannelStore.getByName('town-square');
+ setTimeout(() => utils.switchChannel(townSquare), 1);
+
this.setState(newState);
}
handleClose() {
- var townSquare = ChannelStore.getByName('town-square');
- utils.switchChannel(townSquare);
-
this.setState({channelName: '', remover: ''});
}
@@ -98,4 +98,4 @@ export default class RemovedFromChannelModal extends React.Component {
return <div/>;
}
-} \ No newline at end of file
+}