Thread subscription
- Add an "Automatic subscription" section to the threaded-messages guide:
sending a message subscribes you to its thread, sending a reply subscribes
you to the parent, and being @mentioned in a reply subscribes you — the
trigger is always your own send, across devices, mirrored to every surface
whether or not the thread panel is open.
- Document useThreadSubscription's onChange argument and the read-only
useThreadSubscriptionState hook.
- Correct thread-header: it emits ui:thread/subscription-changed (was
documented as emitting nothing).
- List the subscription mirror in message-list's emitted events.
Pin & save
- Add a "Custom UI" section to the pin/save guide: the SDK calls and the
ui: events to publish when driving pin/save from a custom UI.
- Add brief permission/limit notes to the pinned-messages and saved-messages
component pages.
Event system
- Document missing SDK-derived events: message/ai-assistant-received,
conversation/pinned, conversation/unpinned.
Description
Docs: Pin & Save, Thread Subscription, and Composer Toolbar Trailing View
Documents three v7 features across the React UI Kit docs, plus the toolbarTrailingView composer slot and a custom text-formatter guide.
New pages
components/pinned-messages.mdx — CometChatPinnedMessages (per-conversation pins, opened from the message header).
components/saved-messages.mdx — CometChatSavedMessages (personal, cross-conversation; standalone screen with no built-in trigger).
guide-pin-and-save-messages.mdx — end-to-end pin/save walkthrough.
guide-custom-text-formatter.mdx — minimal color formatter bound to a toolbarTrailingView button, rendered read-only in bubbles.
Updated pages
message-composer — toolbarTrailingView (View Props + Props + example).
message-list — hidePin/Unpin/Save/Unsave/ThreadSubscriptionOption + a "Pin and Save Options" section.
conversations — hidePinConversation, a "Pin Conversation" section (pin indicator, limits, system pins), and the ui:conversation/pin-changed event.
message-bubble — pinned/saved indicators (chrome table, section, CSS selectors).
message-header — onPinnedMessagesClicked / hidePinnedMessagesOption.
thread-header — subscription bell (hideThreadSubscriptionToggle, onThreadSubscriptionChange).
event-system — SDK events (message/pinned|unpinned|saved|unsaved, thread/subscription-changed) and UI events (ui:message/pin-changed, ui:message/save-changed, ui:conversation/pin-changed, ui:thread/subscription-changed).
core-features — "Pin and Save Messages" section + the features.ux.* limit settings.
components-overview — pinned/saved components.
guide-threaded-messages — "Thread Subscription" section.
docs.json — registered the new pages.
Related Issue(s)
Type of Change
Checklist
Additional Information
Screenshots (if applicable)