Fix undefined friend

This commit is contained in:
yflory 2017-08-31 15:49:20 +02:00
parent b8971cdc23
commit 885282ddea
1 changed files with 3 additions and 2 deletions

View File

@ -48,9 +48,10 @@ define([
});
};
Msg.getFriendChannelsList = function (proxy) {
Msg.getFriendChannelsList = function (common) {
var list = [];
eachFriend(proxy, function (friend) {
var proxy = common.getProxy();
eachFriend(proxy.friends, function (friend) {
list.push(friend.channel);
});
return list;