in frontend/src/main/kotlin/org/jetbrains/plugins/template/chatApp/viewmodel/ChatViewModel.kt [86:95]
override fun onAbortSendingMessage() {
currentSendMessageJob?.cancel()
emitPromptInputState(
when (val currentPromptInput = getCurrentInputTextIfNotEmpty()) {
null -> MessageInputState.Disabled
else -> MessageInputState.Enabled(currentPromptInput)
}
)
}