Skip to main content
Message Privately lets users start a direct 1:1 conversation with a group member without leaving the group context. The user can return to the group after the private chat. Before starting, complete the Integration Guide.

Components


Implementation Steps

1. Group Member Click Handler

When a group member is clicked, cast them to a User object and initiate a private chat. Save the current group so the user can return to it later.

2. Group Members with Private Messaging Option

Render cometchat-group-members and handle the (itemClick) output to trigger the private chat flow.

3. Private Chat Interface

Render a full chat view (header, message list, composer) for the 1:1 conversation. The header includes a back button that returns the user to the original group.

4. Return to Group

When the user clicks back, restore the previous group context and close the private chat view.

5. Full Component Example

A complete standalone component wiring group members, private chat, and navigation together.

Feature Matrix


Next Steps

Group Members

Display and manage group member lists.

Message List

Render real-time message threads.

All Guides

Browse all feature and formatter guides.

Sample App

Full working sample application on GitHub.