invite

fun invite(userId: String, onCompletion: (SippoResourceError?) -> Unit)

Adds a new participant to the current chat.

Parameters

userId

UserId of the participant to be invited.

onCompletion

Callback that will be invoked when the request is completed. It will receive a SippoResourceError if any error occurs. In case of success, error will be null.


fun invite(userIds: List<String>, onCompletion: (SippoResourceError?) -> Unit)

Adds a list of participants to the current chat.

Parameters

userIds

List of userIds of the participants to be invited.

onCompletion

Callback that will be invoked when the request is completed. It will receive a SippoResourceError if any error occurs. In case of success, error will be null.