private fun threadLoadMore(threadMode: MessageMode.MessageThread) { threadMessagesState = threadMessagesState.copy(isLoadingMore = true) if (threadMode.threadState != null) { chatClient.getRepliesMore( messageId = threadMode.parentMessage.id, firstId = threadMode.threadState?.oldestInThread?.value?.id ?: threadMode.parentMessage.id, limit = DefaultMessageLimit, ).enqueue() } else { threadMessagesState = threadMessagesState.copy(isLoadingMore = false) logger.w { "Thread state must be not null for offline plugin thread load more!" } } }
Load older messages for the specified thread [MessageMode.MessageThread.parentMessage].