Friends

If you want to associate friends with your users, you must handle friend management in your app.
Once two users are friends (i.e. they have accepted each other as friends), then you can associate them as friends in CometChat.

The following table lists the properties that the Friends API supports

ParametersTypeDescription
acceptedarray of strings(optional) Indicates an array of UIDs that are to be made friends.
Maximum of 25 users can be passed in the accepted array.