diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-11-01 12:58:04 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-11-01 09:58:04 -0700 |
commit | b4002ba55f9a96ca2f21b3ad2afced37b47ac69e (patch) | |
tree | bb748872d73ba9a9dd333fd53349aa4aa5a33822 /webapp/components/more_channels.jsx | |
parent | ef53aa1e7f2233a5c094b6cfdd0b647566b1b75c (diff) | |
download | chat-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.jsx | 4 |
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() { |