Added feature to the 'More...' PM channel list and fixed small cosmetic issues

Этот коммит содержится в:
Reed Garmsen
2015-08-14 18:26:09 -07:00
родитель 56eeb2f6ef
Коммит f2b06cfc7c
5 изменённых файлов: 72 добавлений и 40 удалений

Просмотреть файл

@@ -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);
}
});