-
public final class PinnedMessageListKt
-
-
Method Summary
Modifier and Type Method Description final static UnitPinnedMessageList(PinnedMessageListViewModel viewModel, Modifier modifier, User currentUser, Function1<Message, Unit> onPinnedMessageClick)Default 'Pinned Messages List' component, which relies on PinnedMessageListViewModel to show and allow interactions with the pinned messages from a given channel. -
-
Method Detail
-
PinnedMessageList
@Composable() final static Unit PinnedMessageList(PinnedMessageListViewModel viewModel, Modifier modifier, User currentUser, Function1<Message, Unit> onPinnedMessageClick)
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.
-
-
-
-