diff options
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/delete_channel_modal.jsx | 4 | ||||
-rw-r--r-- | webapp/components/navbar.jsx | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/webapp/components/delete_channel_modal.jsx b/webapp/components/delete_channel_modal.jsx index 7ec6fde44..315a3cd5e 100644 --- a/webapp/components/delete_channel_modal.jsx +++ b/webapp/components/delete_channel_modal.jsx @@ -13,6 +13,8 @@ import {browserHistory} from 'react-router/es6'; import React from 'react'; +import {loadChannelsForCurrentUser} from 'actions/channel_actions.jsx'; + export default class DeleteChannelModal extends React.Component { constructor(props) { super(props); @@ -29,7 +31,7 @@ export default class DeleteChannelModal extends React.Component { Client.deleteChannel( this.props.channel.id, () => { - AsyncClient.getChannels(true); + loadChannelsForCurrentUser(); }, (err) => { AsyncClient.dispatchError(err, 'handleDelete'); diff --git a/webapp/components/navbar.jsx b/webapp/components/navbar.jsx index cf671e64f..4a06d8914 100644 --- a/webapp/components/navbar.jsx +++ b/webapp/components/navbar.jsx @@ -115,7 +115,8 @@ export default class Navbar extends React.Component { Client.leaveChannel(channelId, () => { - AsyncClient.getChannels(true); + ChannelActions.loadChannelsForCurrentUser(); + if (this.state.isFavorite) { ChannelActions.unmarkFavorite(channelId); } |