Finally fixed the git weirdness

Этот коммит содержится в:
nickago
2015-07-01 12:41:36 -07:00
родитель 5e204030ff
Коммит fd310e382a
4 изменённых файлов: 27 добавлений и 14 удалений

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

@@ -2,6 +2,7 @@
// See License.txt for license information.
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
var ChannelStore = require('../stores/channel_store.jsx')
var UserStore = require('../stores/user_store.jsx');
var Constants = require('../utils/constants.jsx');
var ActionTypes = Constants.ActionTypes;
@@ -726,6 +727,23 @@ module.exports.isComment = function(post) {
return false;
}
module.exports.getDirectTeammate = function(channel_id) {
var userIds = ChannelStore.get(channel_id).name.split('__');
if(userIds.length != 2) {
return;
}
var curUser = UserStore.getCurrentId();
for(var idx in userIds) {
if(userIds[idx] === curUser)
delete userIds[idx];
}
return UserStore.getProfile(userIds[0])
}
Image.prototype.load = function(url, progressCallback) {
var thisImg = this;
var xmlHTTP = new XMLHttpRequest();