summaryrefslogtreecommitdiffstats
path: root/webapp/components/more_channels.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-11-01 12:58:04 -0400
committerCorey Hulen <corey@hulen.com>2016-11-01 09:58:04 -0700
commitb4002ba55f9a96ca2f21b3ad2afced37b47ac69e (patch)
treebb748872d73ba9a9dd333fd53349aa4aa5a33822 /webapp/components/more_channels.jsx
parentef53aa1e7f2233a5c094b6cfdd0b647566b1b75c (diff)
downloadchat-b4002ba55f9a96ca2f21b3ad2afced37b47ac69e.tar.gz
chat-b4002ba55f9a96ca2f21b3ad2afced37b47ac69e.tar.bz2
chat-b4002ba55f9a96ca2f21b3ad2afced37b47ac69e.zip
Plt-4483 Removed unnecessary events from ChannelStore (#4407)
* PLT-4483 Removed MoreChange listener from ChannelStore * PLT-4483 Removed LeaveChannel listener from ChannelStore
Diffstat (limited to 'webapp/components/more_channels.jsx')
-rw-r--r--webapp/components/more_channels.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/more_channels.jsx b/webapp/components/more_channels.jsx
index b72f9aedd..b35f5b997 100644
--- a/webapp/components/more_channels.jsx
+++ b/webapp/components/more_channels.jsx
@@ -41,7 +41,7 @@ export default class MoreChannels extends React.Component {
componentDidMount() {
const self = this;
- ChannelStore.addMoreChangeListener(this.onListenerChange);
+ ChannelStore.addChangeListener(this.onListenerChange);
$(this.refs.modal).on('shown.bs.modal', () => {
AsyncClient.getMoreChannels(true);
@@ -54,7 +54,7 @@ export default class MoreChannels extends React.Component {
}
componentWillUnmount() {
- ChannelStore.removeMoreChangeListener(this.onListenerChange);
+ ChannelStore.removeChangeListener(this.onListenerChange);
}
getStateFromStores() {