Notifications
Clear all

Adding friends

3 Posts
2 Users
0 Likes
356 Views
(@rained)
Posts: 5
Active Member
Topic starter
 

Hello! I am using CombuManager.localUser.AddContact with eContactType.Request willing to send a friend request to another player.

Combu response is successful and I can see the invited user added to my friends list with CombuManager.localUser.LoadFriends. But on the requested player side, the same LoadFriends gets nothing. Any help with that? We have Unity 2019.4.0f1 and Combu 3.1.2

 
Posted : 10/07/2020 11:27 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Did you set FRIENDS_REQUIRE_ACCEPT to TRUE in your config.php? If it's not set or it's set to FALSE then everyone has his own list of friends (requests are disabled so it's basically adding the other user as friend of localUser) that is each user must add the other to his friends list, while if it's set to TRUE then the system works with the requests (the other user can Load with eContactType.Request that will set the array requests of localUser, then he can accept a request by calling AddContact with eContactType.Friend or block the user with eContactType.Ignore or delete the request with RemoveContact).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 11/07/2020 1:57 am
(@rained)
Posts: 5
Active Member
Topic starter
 

Thanks, it was just that.

 
Posted : 13/07/2020 4:17 pm
Share: