Skip to content

Commit

Permalink
Merge pull request #3 from dolkensp/hotfix/friends-not-importing
Browse files Browse the repository at this point in the history
Bug fix for friends not importing correctly
  • Loading branch information
peter-dolkens authored Sep 3, 2018
2 parents 454bc26 + 44b19f8 commit a32c169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web_resources/ptYou.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; })
Expand Down

0 comments on commit a32c169

Please sign in to comment.