clearData

fun clearData()

Clears all the data from the input — text, attachments, validation errors, actions, and active command. In thread mode, MessageComposerState.alsoSendToChannel is preserved until the user toggles it; otherwise it is reset.