summaryrefslogtreecommitdiffstats
path: root/web/react/components/removed_from_channel_modal.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-08 09:48:45 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-08 10:54:27 -0400
commit70144962522a5d8db1c46cbd93d83e64b8ca778b (patch)
treef40c143270fab3c7079b596610a9b20d79dc9b65 /web/react/components/removed_from_channel_modal.jsx
parentc189e2bb7681ba01edc9b8c5accd90b94c898d0a (diff)
downloadchat-70144962522a5d8db1c46cbd93d83e64b8ca778b.tar.gz
chat-70144962522a5d8db1c46cbd93d83e64b8ca778b.tar.bz2
chat-70144962522a5d8db1c46cbd93d83e64b8ca778b.zip
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
+}