MessageActions

fun MessageActions(message: Message, messageOptions: List<MessageOptionItemState>, ownCapabilities: Set<String>, onMessageAction: (MessageAction) -> Unit, onShowMoreReactionsSelected: () -> Unit, modifier: Modifier = Modifier, currentUser: User? = null, onDismiss: () -> Unit = {})

Represents the options user can take after selecting a message.

The selected message is shown in a centered pop-out overlay with a dark background, reactions above it and a flat options list below.

Parameters

message

The selected message.

messageOptions

The available message options within the menu.

ownCapabilities

Set of capabilities the user is given for the current channel. For a full list @see ChannelCapabilities.

onMessageAction

Handler that propagates click events on each item.

onShowMoreReactionsSelected

Handler that propagates clicks on the show more reactions button.

modifier

Modifier for styling.

currentUser

The currently logged-in user, used to build the message preview.

onDismiss

Handler invoked asynchronously once after the exit animation completes.