diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-09-09 08:22:06 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-09-09 08:22:06 -0400 |
commit | b15b297bb3b5ae6dc6d336b0a333e967b31092bf (patch) | |
tree | b48a89da07b0c6b1d07692c532b85ee745cb45f0 /web/react/components/channel_header.jsx | |
parent | 64d4890a4109618b383f7cfe1acc541bd72a0899 (diff) | |
parent | 5c0680397de9d3cfd0018743e0b1d58dfbdca25d (diff) | |
download | chat-b15b297bb3b5ae6dc6d336b0a333e967b31092bf.tar.gz chat-b15b297bb3b5ae6dc6d336b0a333e967b31092bf.tar.bz2 chat-b15b297bb3b5ae6dc6d336b0a333e967b31092bf.zip |
Merge pull request #623 from mattermost/plt-35
PLT-35 Add post list container to hold mounted post lists for faster rendering/channel switching.
Diffstat (limited to 'web/react/components/channel_header.jsx')
-rw-r--r-- | web/react/components/channel_header.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx index 87b9cab04..db23a5831 100644 --- a/web/react/components/channel_header.jsx +++ b/web/react/components/channel_header.jsx @@ -64,9 +64,14 @@ export default class ChannelHeader extends React.Component { handleLeave() { Client.leaveChannel(this.state.channel.id, function handleLeaveSuccess() { + AppDispatcher.handleViewAction({ + type: ActionTypes.LEAVE_CHANNEL, + id: this.state.channel.id + }); + const townsquare = ChannelStore.getByName('town-square'); Utils.switchChannel(townsquare); - }, + }.bind(this), function handleLeaveError(err) { AsyncClient.dispatchError(err, 'handleLeave'); } |