fetchLastMessages

fun fetchLastMessages(onCompletion: (Either<List<XMPPMessage>, SippoResourceError>) -> Unit)

Retrieves the last messages available to the current chat. The maximum number of messages to be obtained from the server if available is 15.

Parameters

onCompletion

Callback that will be invoked when the request is completed. It will receive the message list in case of success or a SippoResourceError if any error occurs.