diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-10-26 12:05:09 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-10-26 12:05:09 -0400 |
commit | fda62fbbf576ead8aea3b4a39a167b7f2d218142 (patch) | |
tree | 1e4ea60dbe93dbaaa1ec09f6a5dd4bd8b4cab02f /web/react/utils/async_client.jsx | |
parent | b46c01b2903d49903cfcf6588097cb72d599b391 (diff) | |
download | chat-fda62fbbf576ead8aea3b4a39a167b7f2d218142.tar.gz chat-fda62fbbf576ead8aea3b4a39a167b7f2d218142.tar.bz2 chat-fda62fbbf576ead8aea3b4a39a167b7f2d218142.zip |
Fix error message on leaving channel
Diffstat (limited to 'web/react/utils/async_client.jsx')
-rw-r--r-- | web/react/utils/async_client.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx index b1bc71d54..75dd35e3f 100644 --- a/web/react/utils/async_client.jsx +++ b/web/react/utils/async_client.jsx @@ -132,7 +132,7 @@ export function getChannel(id) { callTracker['getChannel' + id] = utils.getTimestamp(); client.getChannel(id, - function getChannelSuccess(data, textStatus, xhr) { + (data, textStatus, xhr) => { callTracker['getChannel' + id] = 0; if (xhr.status === 304 || !data) { @@ -145,7 +145,7 @@ export function getChannel(id) { member: data.member }); }, - function getChannelFailure(err) { + (err) => { callTracker['getChannel' + id] = 0; dispatchError(err, 'getChannel'); } |