updateOwnAvatar

fun updateOwnAvatar(avatar: String, onCompletion: (Either<Presence, SippoResourceError>) -> Unit)

Updates the current user avatar.

Parameters

avatar

Avatar encoded on Base64 to be updated.

onCompletion

Callback that will be invoked when the request is completed. It will receive the updated presence in case of success or a SippoResourceError otherwise.