fetch Messages By
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.
on Completion
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.