Nakama's AddFriend function doesn't work in Unity

226 Views Asked by At

I am trying to use Nakama to add social functions to my game. When I try to send the friend request, I get the "Failed to add friend" error. This is my code:

var message = NFriendAddMessage.ById(UserID);
    _client.Send(message, (bool done) => {
        Debug.Log("Friend added or request sent.");
    }, (INError err) => {
        Debug.LogErrorFormat("Error: code '{0}' with '{1}'.", err.Code, err.Message);
    }
                );

What am I doing wrong?

1

There are 1 best solutions below

0
Mo Firouz On BEST ANSWER

This bug is resolved in the 2.0 releases of the server as well as many new features. Definitely give it a go and drop into the Gitter community if you have any questions.