diff options
author | Björn Roland <bjoernr-de@users.noreply.github.com> | 2016-12-21 15:27:42 +0100 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-12-21 11:27:42 -0300 |
commit | f0b74e78dde9a029e49e730d854b769a53756624 (patch) | |
tree | f330552202931e2e157a2f9a3124857c0386a413 /webapp/actions | |
parent | 2c09582d89f6ff075fdfb8fce5f039b8ac5a920f (diff) | |
download | chat-f0b74e78dde9a029e49e730d854b769a53756624.tar.gz chat-f0b74e78dde9a029e49e730d854b769a53756624.tar.bz2 chat-f0b74e78dde9a029e49e730d854b769a53756624.zip |
#4699 Move instances of Client.updateChannelNotifyProps() in components to an action (#4862)
Diffstat (limited to 'webapp/actions')
-rw-r--r-- | webapp/actions/channel_actions.jsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/webapp/actions/channel_actions.jsx b/webapp/actions/channel_actions.jsx index 12e58177d..ad2f315ee 100644 --- a/webapp/actions/channel_actions.jsx +++ b/webapp/actions/channel_actions.jsx @@ -260,3 +260,18 @@ export function autocompleteChannels(term, success, error) { } ); } + +export function updateChannelNotifyProps(data, success, error) { + Client.updateChannelNotifyProps(data, + () => { + if (success) { + success(); + } + }, + (err) => { + if (error) { + error(err); + } + } + ); +} |