Component | Role |
---|---|
CometChatMessageList | Displays messages and provides onThreadRepliesClick handler. |
CometChatThreadedMessageHeader | Shows the parent message context at the top of the thread. |
CometChatMessageComposer | Composes messages with an optional parentMessageId . |
ThreadedMessagesVC | View controller that hosts the threaded conversation. |
ThreadedMessagesVC.swift
Captures user intent and opens a focused thread screen.
ThreadedMessagesVC.swift
:
CometChatMessageList
fetches replies using the parentMessageId
.
CometChatThreadedMessageHeader
(fonts, colors, etc.).navigationItem.leftBarButtonItem
for back navigation.UIActivityIndicatorView
during fetch/send operations.Feature | Implementation |
---|---|
Show thread option | CometChatMessageList.onThreadRepliesClick |
Thread view screen | ThreadedMessagesVC.swift |
Display threaded messages | CometChatMessageList.set(parentMessage:) |
Send threaded message | CometChatMessageComposer.set(parentMessageId:) |
Thread header | CometChatThreadedMessageHeader |
Handle blocked user | Remove composer & show a blocked user label |