Package-level declarations
Functions
Link copied to clipboard
Contains the message dialogs used to prompt the user with message flagging and deletion actions
Link copied to clipboard
fun MessageModerationDialog(listViewModel: MessageListViewModel, composerViewModel: MessageComposerViewModel, skipPushNotification: Boolean, skipEnrichUrl: Boolean)
Contains the dialog for a message that needs to be moderated.
Link copied to clipboard
fun MessagesScreen(viewModelFactory: MessagesViewModelFactory, showHeader: Boolean = true, reactionSorting: ReactionSorting = ReactionSortingByFirstReactionAt, onBackPressed: () -> Unit = {}, onHeaderTitleClick: (channel: Channel) -> Unit = {}, onChannelAvatarClick: () -> Unit = {}, onComposerLinkPreviewClick: (LinkPreview) -> Unit? = null, onMessageLinkClick: (Message, String) -> Unit? = null, onUserAvatarClick: (User) -> Unit = {}, onUserMentionClick: (User) -> Unit = {}, skipPushNotification: Boolean = false, skipEnrichUrl: Boolean = false, showAnonymousAvatar: Boolean = false, threadMessagesStart: ThreadMessagesStart = ThreadMessagesStart.BOTTOM, topBarContent: @Composable (BackAction) -> Unit = {
DefaultTopBarContent(
viewModelFactory = viewModelFactory,
backAction = it,
onHeaderTitleClick = onHeaderTitleClick,
onChannelAvatarClick = onChannelAvatarClick,
)
}, bottomBarContent: @Composable () -> Unit = {
DefaultBottomBarContent(
viewModelFactory = viewModelFactory,
onComposerLinkPreviewClick = onComposerLinkPreviewClick,
skipPushNotification = skipPushNotification,
skipEnrichUrl = skipEnrichUrl,
)
})
Default root Messages screen component, that provides the necessary ViewModels and connects all the data handling operations, as well as some basic actions, like back pressed handling.
Link copied to clipboard
Inherited functions
Link copied to clipboard
fun BoxScope.AttachmentsPickerMenu(listViewModel: MessageListViewModel, attachmentsPickerViewModel: AttachmentsPickerViewModel, composerViewModel: MessageComposerViewModel)
Contains the attachments picker menu wrapped inside of an animated composable.
Link copied to clipboard
fun BoxScope.MessageMenus(listViewModel: MessageListViewModel, composerViewModel: MessageComposerViewModel, skipPushNotification: Boolean, skipEnrichUrl: Boolean)
Contains the various menus and pickers the user can use to interact with messages.