MessageScreen

fun MessageScreen(contactKey: String, message: String, viewModel: MessageViewModel, navigateToNodeDetails: (Int) -> Unit, navigateToQuickChatOptions: () -> Unit, onNavigateBack: () -> Unit)(source)

The main screen for displaying and sending messages to a contact or channel.

Parameters

contactKey

A unique key identifying the contact or channel.

message

An optional message to pre-fill in the input field.

viewModel

The MessageViewModel instance for handling business logic and state.

navigateToNodeDetails

Callback to navigate to a node's detail screen.

onNavigateBack

Callback to navigate back from this screen.