From 885282ddea01e40b54f20613383b4e8accaac546 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 31 Aug 2017 15:49:20 +0200 Subject: [PATCH] Fix undefined friend --- www/common/common-messaging.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/common-messaging.js b/www/common/common-messaging.js index a0b39c88f..679c1a747 100644 --- a/www/common/common-messaging.js +++ b/www/common/common-messaging.js @@ -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;