Package-level declarations

Types

Link copied to clipboard
data class MessageOptionItemVisibility(val isRetryMessageVisible: Boolean = true, val isReplyVisible: Boolean = true, val isThreadReplyVisible: Boolean = true, val isMarkAsUnreadVisible: Boolean = true, val isCopyTextVisible: Boolean = true, val isEditMessageVisible: Boolean = true, val isFlagMessageVisible: Boolean = true, val isPinMessageVisible: Boolean = true, val isDeleteMessageVisible: Boolean = true, val isBlockUserVisible: Boolean = true)

Controls option visibility in the message options menu. All options are visible by default.

Functions

Link copied to clipboard
fun defaultMessageOptionsState(selectedMessage: Message, currentUser: User?, isInThread: Boolean, ownCapabilities: Set<String>): List<MessageOptionItemState>

Builds the default message options we show to our users. A different set of options is shown for pending and sent messages.

Link copied to clipboard
fun MessageOptionItem(option: MessageOptionItemState, modifier: Modifier = Modifier, verticalAlignment: Alignment.Vertical = Alignment.CenterVertically, horizontalArrangement: Arrangement.Horizontal = Arrangement.Start)

Each option item in the column of options.

Link copied to clipboard
fun MessageOptions(options: List<MessageOptionItemState>, onMessageOptionSelected: (MessageOptionItemState) -> Unit, modifier: Modifier = Modifier, itemContent: @Composable ColumnScope.(MessageOptionItemState) -> Unit = { option -> DefaultMessageOptionItem( option = option, onMessageOptionSelected = onMessageOptionSelected, ) })

Displays all available MessageOptionItems.