diff options
author | George Goldberg <george@gberg.me> | 2017-01-17 20:45:18 +0000 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-01-17 15:45:18 -0500 |
commit | 0685afd1d197584e78a111934754d7111bb2dbe8 (patch) | |
tree | ed4b3ac931a027767392af4d1d1d88e13058d4a6 /webapp/components/edit_channel_purpose_modal.jsx | |
parent | cdf91d8ee8d0cdd03b506f06d6c01d5aeed92e74 (diff) | |
download | chat-0685afd1d197584e78a111934754d7111bb2dbe8.tar.gz chat-0685afd1d197584e78a111934754d7111bb2dbe8.tar.bz2 chat-0685afd1d197584e78a111934754d7111bb2dbe8.zip |
PLT-2978: Add channel purpose change system message. (#5094)
Completes original patch by David Lu.
Diffstat (limited to 'webapp/components/edit_channel_purpose_modal.jsx')
-rw-r--r-- | webapp/components/edit_channel_purpose_modal.jsx | 9 |
1 files changed, 7 insertions, 2 deletions
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') { |