Add new users to friend's list automatically in _friendUpdate().

Esse commit está contido em:
Daniel Howard
2014-06-27 16:42:02 -07:00
commit 786aec2505
+3
Ver Arquivo
@@ -857,6 +857,9 @@ $.extend(AjaxIM.prototype, {
msglog[0].scrollTop = msglog[0].scrollHeight;
}
if (!this.friends[friend]) {
this.addFriend(friend, [status, statusMessage], 'Friends');
}
if(this.friends[friend]) {
var friend_id = 'imjs-friend-' + md5.hex(friend + this.friends[friend].group);
$('#' + friend_id).attr('class', 'imjs-friend imjs-' + status);