fetchMessagesBy

fun fetchMessagesBy(query: MessageQuery, onCompletion: (Either<List<XMPPMessage>, SippoResourceError>) -> Unit)

Retrieves the messages available to the current chat within the specified query.

Parameters

query

defining the message request.

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.