MessageTextContentParams
data class MessageTextContentParams(val message: Message, val currentUser: User?, val onLongItemClick: (Message) -> Unit, val onUserMentionClick: (User) -> Unit, val modifier: Modifier = Modifier, val onLinkClick: (Message, String) -> Unit? = null, val onMentionClick: (Mention) -> Unit = {})
Parameters for ChatComponentFactory.MessageTextContent.
Parameters
message
The message containing the text.
currentUser
The currently logged in user.
onLongItemClick
Action invoked when a message is long-clicked.
onUserMentionClick
Action invoked when a user mention is clicked. Prefer onMentionClick for new code: it also fires for other mention types.
modifier
Modifier for styling.
onLinkClick
Action invoked when a link in a message is clicked.
onMentionClick
Action invoked when any mention is clicked.