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?
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.