private fun loadThread(parentMessage: Message) {val threadState = chatClient.getRepliesAsState(parentMessage.id, DefaultMessageLimit)val channelState = channelState.value ?: returnmessageMode = MessageMode.MessageThread(parentMessage, threadState)observeThreadMessages(threadId = threadState.parentId,messages = threadState.messages,endOfOlderMessages = threadState.endOfOlderMessages,reads = channelState.reads)}
Changes the current [messageMode] to be [Thread] with [ThreadState] and Loads thread data using ChatClient directly. The data is observed by using [ThreadState].