getMessageList

open fun getMessageList(    @NonNull context: Context,     @NonNull conversationId: String,     @IntRange(from = 0) startingFrom: Int,     @IntRange(from = 1) numberOfMessage: Int): List<BaseMessage>

Call this method to retrieve message list from local Database in the right chronological order

This method should be executed in a worker thread since it contains a lot of operation that can exceed 5sec or block the UI thread.

Return

Message list or null

Parameters

context

The application context

conversationId

The conversation ID

startingFrom

The position of message from where starting the load of messages. The count of message starts from the end. The value must be positive. Put 0 to start loading from latest message in the conversation.

numberOfMessage

The max number of message record to be retrieved, 0 will return nothing. Value should be >= 1