CometChatThreadedMessageList
and CometChatMessageList
components to reply to messages in threads and view focused sub-conversations seamlessly.
appID
, region
, authKey
).Component | Role |
---|---|
CometChatMessageList | Displays main chat; provides onThreadRepliesClick callback. |
CometChatThreadedMessageList | Fetches and displays replies for a parent message. |
CometChatMessageComposer | Sends new messages; pass parentMessageId to send replies. |
CometChatThreadedHeader | Shows the parent message and thread context at the top. |
sample_app/lib/messages/messages.dart
Captures the user’s intent to view or add to a thread.
lib/thread_screen/cometchat_thread.dart
Provides a focused UI for thread interactions.
lib/thread_screen/cometchat_thread.dart
Automatically associates new messages with the parent thread.
lib/thread_screen/cometchat_thread.dart
Ensures only relevant threaded messages are shown.
CometChatThreadedHeader
appearance (colors, fonts).limit
in MessagesRequestBuilder
.fetchPrevious
errors.Feature | Component / Method |
---|---|
Show thread option | CometChatMessageList.onThreadRepliesClick |
Thread view screen | CometChatThread widget |
Display threaded messages | CometChatThreadedMessageList(parentMessageId) |
Send threaded message | CometChatMessageComposer(parentMessageId) |
Fetch thread replies | MessagesRequestBuilder.setParentMessageId |