diff options
Diffstat (limited to 'webapp/actions')
-rw-r--r-- | webapp/actions/channel_actions.jsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/webapp/actions/channel_actions.jsx b/webapp/actions/channel_actions.jsx index ae32a481b..b108633d7 100644 --- a/webapp/actions/channel_actions.jsx +++ b/webapp/actions/channel_actions.jsx @@ -210,6 +210,24 @@ export function joinChannel(channel, success, error) { ); } +export function updateChannel(channel, success, error) { + Client.updateChannel( + channel, + () => { + AsyncClient.getChannel(channel.id); + + if (success) { + success(); + } + }, + (err) => { + if (error) { + error(err); + } + } + ); +} + export function searchMoreChannels(term, success, error) { Client.searchMoreChannels( term, |