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 IDdelete
Package@cometchat/chat-uikit-react
Message Types(any deleted message)
Message Categories(any)
Included by DefaultYes
Bubble ComponentCometChatDeleteBubble
Conversation PreviewThis message was deleted
Context MenuNone

Overview

The Delete plugin handles any message that has been deleted (where getDeletedAt() 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 with getDeletedAt() !== 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

TargetSelector
Bubble root.cometchat-delete-bubble
Placeholder text.cometchat-delete-bubble__text