AI Integration Quick Reference
AI Integration Quick Reference
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.
Live Preview — interact with the delete message bubble.Open in Storybook ↗
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)