summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-08-14 18:26:09 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-08-18 08:47:14 -0700
commitf2b06cfc7c847f687582b1855959fdd885e3fac8 (patch)
treea92fa666bd612dd077378d02db6dfd84bc28ff1b /web/react/utils/client.jsx
parent56eeb2f6efd04a8ff7b9f6aec18cda5089db1b28 (diff)
downloadchat-f2b06cfc7c847f687582b1855959fdd885e3fac8.tar.gz
chat-f2b06cfc7c847f687582b1855959fdd885e3fac8.tar.bz2
chat-f2b06cfc7c847f687582b1855959fdd885e3fac8.zip
Added feature to the 'More...' PM channel list and fixed small cosmetic issues
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r--web/react/utils/client.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index 1b9ad942e..da0b74081 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -438,7 +438,7 @@ module.exports.createChannel = function(channel, success, error) {
module.exports.track('api', 'api_channels_create', channel.type, 'name', channel.name);
};
-module.exports.createPMChannelIfNotExists = function(channel, userId, success, error) {
+module.exports.createDirectChannel = function(channel, userId, success, error) {
$.ajax({
url: '/api/v1/channels/create_direct',
dataType: 'json',
@@ -447,7 +447,7 @@ module.exports.createPMChannelIfNotExists = function(channel, userId, success, e
data: JSON.stringify({user_id: userId}),
success: success,
error: function(xhr, status, err) {
- var e = handleError('createPMIfNotExists', xhr, status, err);
+ var e = handleError('createDirectChannel', xhr, status, err);
error(e);
}
});