From 0685afd1d197584e78a111934754d7111bb2dbe8 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Tue, 17 Jan 2017 20:45:18 +0000 Subject: PLT-2978: Add channel purpose change system message. (#5094) Completes original patch by David Lu. --- webapp/components/edit_channel_purpose_modal.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/edit_channel_purpose_modal.jsx b/webapp/components/edit_channel_purpose_modal.jsx index 7ba2eff2c..21bf013a9 100644 --- a/webapp/components/edit_channel_purpose_modal.jsx +++ b/webapp/components/edit_channel_purpose_modal.jsx @@ -2,7 +2,7 @@ // See License.txt for license information. import PreferenceStore from 'stores/preference_store.jsx'; - +import AppDispatcher from '../dispatcher/app_dispatcher.jsx'; import * as AsyncClient from 'utils/async_client.jsx'; import Client from 'client/web_client.jsx'; import Constants from 'utils/constants.jsx'; @@ -67,10 +67,15 @@ export default class EditChannelPurposeModal extends React.Component { Client.updateChannelPurpose( this.props.channel.id, this.refs.purpose.value.trim(), - () => { + (channel) => { AsyncClient.getChannel(this.props.channel.id); this.handleHide(); + + AppDispatcher.handleServerAction({ + type: Constants.ActionTypes.RECEIVED_CHANNEL, + channel + }); }, (err) => { if (err.id === 'api.context.invalid_param.app_error') { -- cgit v1.2.3-1-g7c22