private fun changeSelectMessageState(selectedMessageState: SelectedMessageState) {if (isInThread) {threadMessagesState = threadMessagesState.copy(selectedMessageState = selectedMessageState)} else {messagesState = messagesState.copy(selectedMessageState = selectedMessageState)}}
Changes the state of [threadMessagesState] or [messagesState] depending on the thread mode.