Package-level declarations
Functions
Link copied to clipboard
fun PinnedMessageItem(message: Message, currentUser: User?, onPinnedMessageClick: (Message) -> Unit, modifier: Modifier = Modifier, leadingContent: @Composable RowScope.(Message) -> Unit = {
DefaultMessagePreviewItemLeadingContent(it)
}, centerContent: @Composable RowScope.(Message) -> Unit = {
DefaultMessagePreviewItemCenterContent(it, currentUser)
}, trailingContent: @Composable RowScope.(Message) -> Unit = {
DefaultMessagePreviewItemTrailingContent(it)
})
The basic pinned message item that displays the channel and the message in a list, and exposes click action.
Link copied to clipboard
fun PinnedMessageList(viewModel: PinnedMessageListViewModel, modifier: Modifier = Modifier, currentUser: User? = ChatClient.instance().getCurrentUser(), onPinnedMessageClick: (Message) -> Unit = {}, itemContent: @Composable (Message) -> Unit = {
DefaultPinnedMessageItem(it, currentUser, onPinnedMessageClick)
}, itemDivider: @Composable (Int) -> Unit = {
DefaultPinnedMessageItemDivider()
}, emptyContent: @Composable () -> Unit = {
DefaultPinnedMessageListEmptyContent(modifier)
}, loadingContent: @Composable () -> Unit = {
DefaultPinnedMessageListLoadingContent(modifier)
}, loadingMoreContent: @Composable () -> Unit = {
DefaultPinnedMessageListLoadingMoreContent()
})
Default 'Pinned Messages List' component, which relies on PinnedMessageListViewModel to show and allow interactions with the pinned messages from a given channel.