HatangChatInbox
fun HatangChatInbox(modifier: Modifier = Modifier, onOpenConversation: (VisitorConversationDto) -> Unit? = null, onNewConversation: () -> Unit? = null, onClose: () -> Unit? = null, showTopBar: Boolean = true, engine: ChatEngine? = null)
The visitor's conversations, newest activity first: who answered, the last message, when, unread count and status. Tapping one opens it; "New message" opens the current conversation (or an empty one).
Parameters
onOpenConversation
a conversation was tapped (default: open it with HatangChat.open).
onNewConversation
"New message" tapped (default: the active conversation with HatangChat.open).
onClose
shows a close button in the top bar (null hides it).
showTopBar
show the title bar (off when embedding under your own).