Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cometchat-22654f5b-react-uikit-v7.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

FieldValue
Plugin IDgroup-action
Package@cometchat/chat-uikit-react
Message TypesgroupMember
Message Categoriesaction
Included by DefaultYes
Bubble ComponentCometChatGroupActionBubble
Conversation PreviewAction text (e.g., ‘Alice joined’)
Context MenuNone

Overview

The Group Action plugin handles messages of type groupMember in category action. These are system messages generated by the SDK when group membership changes occur. They render as centered, pill-shaped bubbles with no sender attribution.

Bubble Rendering

  • Centered pill — no left/right alignment, no avatar, no timestamp
  • Action text — localized description of what happened (e.g., “Alice joined”, “Bob was kicked by Admin”)
  • Uses the shared getActionMessageText() utility for localized text generation

Supported Actions

ActionExample text
Member joined”Alice joined”
Member left”Bob left”
Member kicked”Admin kicked Bob”
Member banned”Admin banned Charlie”
Member unbanned”Admin unbanned Charlie”
Scope changed”Admin made Bob a moderator”
Member added”Admin added Dave”

Context Menu Options

None — group action messages have no context menu.

Conversation Preview

Returns the action text (truncated to 100 characters). Falls back to Group action if text generation fails.

CSS Selectors

TargetSelector
Bubble root.cometchat-group-action-bubble
Action text.cometchat-group-action-bubble__text