public fun loadMore() { if (chatClient.clientState.isOffline) return val messageMode = messageMode  if (messageMode is MessageMode.MessageThread) { threadLoadMore(messageMode) } else { messagesState = messagesState.copy(isLoadingMore = true) chatClient.loadOlderMessages(channelId, messageLimit).enqueue() } }
Triggered when the user loads more data by reaching the end of the current messages.