Package-level declarations

Types

Link copied to clipboard
sealed class MessageMenuAction

Actions available in the message selection mode's top bar.

Properties

Link copied to clipboard

The maximum byte size for a message.

Functions

Link copied to clipboard
fun ActionModeTopBar(selectedCount: Int, onAction: (MessageMenuAction) -> Unit): ERROR CLASS: Unresolved name: TopAppBar

The top app bar displayed when in message selection mode.

Link copied to clipboard
fun DeleteMessageDialog(count: Int, onConfirm: () -> Unit, onDismiss: () -> Unit)

A dialog confirming the deletion of messages.

Link copied to clipboard
fun String.ellipsize(maxLength: Int): String

Ellipsizes a string if its length exceeds maxLength.

Link copied to clipboard
fun EmptyConversationsPlaceholder(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)
Link copied to clipboard
fun getMessageBubbleShape(cornerRadius: ERROR CLASS: Symbol not found for Dp, isSender: Boolean, hasSamePrev: Boolean = false, hasSameNext: Boolean = false): ERROR CLASS: Symbol not found for CornerBasedShape

Returns a CornerBasedShape for a message bubble based on its position in a sequence.

Link copied to clipboard
fun handleQuickChatAction(action: ERROR CLASS: Symbol not found for QuickChatAction, currentText: String, onUpdateText: (String) -> Unit, onSendMessage: (String) -> Unit)

Handles a quick chat action, either appending its message to the current text or sending it directly.

Link copied to clipboard
fun String.limitBytes(maxBytes: Int): String

Truncates a string to ensure its UTF-8 byte representation does not exceed maxBytes.

Link copied to clipboard
fun MessageActionsContent(quickEmojis: List<String>, onReply: () -> Unit, onReact: (String) -> Unit, onMoreReactions: () -> Unit, onCopy: () -> Unit, onSelect: () -> Unit, onDelete: () -> Unit, statusString: ERROR CLASS: Symbol not found for Pair<ERROR CLASS: Symbol not found for StringResource, ERROR CLASS: Symbol not found for StringResource>?? = null, status: ERROR CLASS: Symbol not found for MessageStatus?? = null, onStatus: () -> Unit)
Link copied to clipboard
fun MessageInput(messageText: String, onMessageChange: (String) -> Unit, onSendMessage: () -> Unit, isEnabled: Boolean, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, isHomoglyphEncodingEnabled: Boolean = false, maxByteSize: Int = MESSAGE_CHARACTER_LIMIT_BYTES)

Shared message input field with send button, byte counter, and homoglyph encoding support.

Link copied to clipboard
fun MessageItem(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, node: ERROR CLASS: Symbol not found for Node, ourNode: ERROR CLASS: Symbol not found for Node, message: ERROR CLASS: Symbol not found for Message, selected: Boolean, inSelectionMode: Boolean = false, onReply: () -> Unit = {}, sendReaction: (String) -> Unit = {}, onShowReactions: () -> Unit = {}, showUserName: Boolean = true, emojis: List<ERROR CLASS: Symbol not found for Reaction> = emptyList(), quickEmojis: List<String> = listOf("👍", "👎", "😂", "🔥", "❤️", "😮"), onClick: () -> Unit = {}, onLongClick: () -> Unit = {}, onDoubleClick: () -> Unit = {}, onSelect: () -> Unit = {}, onDelete: () -> Unit = {}, onClickChip: (ERROR CLASS: Symbol not found for Node) -> Unit = {}, onNavigateToOriginalMessage: (Int) -> Unit = {}, onStatusClick: () -> Unit = {}, hasSamePrev: Boolean = false, hasSameNext: Boolean = false): ERROR CLASS: Unresolved name: Column
Link copied to clipboard
fun MessageStatusDialog(message: ERROR CLASS: Symbol not found for Message, nodes: List<ERROR CLASS: Symbol not found for Node>, ourNode: ERROR CLASS: Symbol not found for Node??, resendOption: Boolean, onResend: () -> Unit, onDismiss: () -> Unit)
Link copied to clipboard
fun MessageStatusIcon(status: ERROR CLASS: Symbol not found for MessageStatus, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)
Link copied to clipboard
fun MessageTopBar(title: String, channelIndex: Int?, mismatchKey: Boolean, onNavigateBack: () -> Unit, channels: ERROR CLASS: Symbol not found for ChannelSet??, channelIndexParam: Int?, showQuickChat: Boolean, onToggleQuickChat: () -> Unit, onNavigateToQuickChatOptions: () -> Unit = {}, filteringDisabled: Boolean = false, onToggleFilteringDisabled: () -> Unit = {}, filteredCount: Int = 0, showFiltered: Boolean = false, onToggleShowFiltered: () -> Unit = {}): ERROR CLASS: Unresolved name: TopAppBar

The default top app bar for the message screen.

Link copied to clipboard
fun QuickChatRow(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, enabled: Boolean, actions: List<ERROR CLASS: Symbol not found for QuickChatAction>, onClick: (ERROR CLASS: Symbol not found for QuickChatAction) -> Unit)

A row of quick chat action buttons.

Link copied to clipboard
fun ReplySnippet(originalMessage: ERROR CLASS: Symbol not found for Message??, onClearReply: () -> Unit, ourNode: ERROR CLASS: Symbol not found for Node??)

Displays a snippet of the message being replied to.

Link copied to clipboard
fun ERROR CLASS: Symbol not found for BoxScope.ScrollToBottomFab(coroutineScope: ERROR CLASS: Symbol not found for CoroutineScope, listState: ERROR CLASS: Symbol not found for LazyListState, unreadCount: Int)

A FloatingActionButton that scrolls the message list to the bottom (most recent messages).

Link copied to clipboard
fun UnreadMessagesDivider(modifier: ERROR CLASS: Symbol not found for Modifier = Modifier)