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/channel_header.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/channel_header.jsx')
-rw-r--r-- | webapp/components/channel_header.jsx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/webapp/components/channel_header.jsx b/webapp/components/channel_header.jsx index 2d3de5998..b92a316ca 100644 --- a/webapp/components/channel_header.jsx +++ b/webapp/components/channel_header.jsx @@ -23,7 +23,6 @@ import SearchStore from 'stores/search_store.jsx'; import PreferenceStore from 'stores/preference_store.jsx'; import WebrtcStore from 'stores/webrtc_store.jsx'; -import AppDispatcher from '../dispatcher/app_dispatcher.jsx'; import * as GlobalActions from 'actions/global_actions.jsx'; import * as WebrtcActions from 'actions/webrtc_actions.jsx'; import * as ChannelActions from 'actions/channel_actions.jsx'; @@ -34,7 +33,7 @@ import Client from 'client/web_client.jsx'; import * as AsyncClient from 'utils/async_client.jsx'; import {getFlaggedPosts} from 'actions/post_actions.jsx'; -import {ActionTypes, Constants, Preferences, UserStatuses} from 'utils/constants.jsx'; +import {Constants, Preferences, UserStatuses} from 'utils/constants.jsx'; import React from 'react'; import {FormattedMessage} from 'react-intl'; @@ -130,11 +129,6 @@ export default class ChannelHeader extends React.Component { () => { const channelId = this.state.channel.id; - AppDispatcher.handleViewAction({ - type: ActionTypes.LEAVE_CHANNEL, - id: channelId - }); - if (this.state.isFavorite) { ChannelActions.unmarkFavorite(channelId); } |