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.
AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Plugin ID | delete |
| Package | @cometchat/chat-uikit-react |
| Message Types | (any deleted message) |
| Message Categories | (any) |
| Included by Default | Yes |
| Bubble Component | CometChatDeleteBubble |
| Conversation Preview | This message was deleted |
| Context Menu | None |
Overview
The Delete plugin handles any message that has been deleted (wheregetDeletedAt() returns a non-null value). It renders a placeholder bubble indicating the message was removed.
Bubble Rendering
- Placeholder text — “This message was deleted” (localized)
- Styling — italic, muted text color, no bubble background for incoming
- Variant — different styling for sent vs received deleted messages
Resolution
The Delete plugin is special — it’s matched by the Plugin Registry’s deleted-message fast path, not by type+category. When the registry encounters a message withgetDeletedAt() !== null, it immediately returns the Delete plugin regardless of the message’s original type.
This means a deleted text message, deleted image, deleted poll — all render the same “deleted” placeholder.
Context Menu Options
None — deleted messages have no context menu options.Conversation Preview
Returns:This message was deleted (localized via message_deleted key)
CSS Selectors
| Target | Selector |
|---|---|
| Bubble root | .cometchat-delete-bubble |
| Placeholder text | .cometchat-delete-bubble__text |