PinnedMessageList

fun PinnedMessageList(viewModel: PinnedMessageListViewModel, modifier: Modifier = Modifier, currentUser: User? = ChatClient.instance().getCurrentUser(), onPinnedMessageClick: (Message) -> Unit = {})

Default 'Pinned Messages List' component, which relies on PinnedMessageListViewModel to show and allow interactions with the pinned messages from a given channel.

Parameters

viewModel

The PinnedMessageListViewModel holding the data and the business logic for showing the pinned messages from a given channel.

modifier

Modifier instance for general styling.

currentUser

The currently logged User, used for formatting the message preview.

onPinnedMessageClick

Action to be invoked when the user clicks on a message from the list.