From 44b19f833bc13afb7d5f5c615788087377b22309 Mon Sep 17 00:00:00 2001 From: Peter Dolkens Date: Mon, 3 Sep 2018 13:48:12 +0100 Subject: [PATCH] Bug fix for friends not importing correctly --- src/web_resources/ptYou.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web_resources/ptYou.js b/src/web_resources/ptYou.js index dd14d88..6d8c978 100644 --- a/src/web_resources/ptYou.js +++ b/src/web_resources/ptYou.js @@ -181,7 +181,7 @@ ptYou.FriendSync = function() var globalFriends = ptYou.Union(ptYou.global.friends, ptYou.global.contacts); var allFriends = ptYou.Union(localFriends, globalFriends); - ptYou.newFriends = ptYou.Except(globalFriends, localFriends); + ptYou.newFriends = ptYou.Except(allFriends, localFriends); var inboundRequests = ptYou.requests.filter(function(request) { return request.requesting_member_id != ptYou.member_id; }).map(function(request) { return request.members[0].nickname; }) var outboundRequests = ptYou.requests.filter(function(request) { return request.requesting_member_id == ptYou.member_id; }).map(function(request) { return request.members[0].nickname; })