SDKsReact NativeEnterprise
Mark or unmark a conversation
Mark or unmark a conversation for the current account.
Call setConversation() to set the marked state of a conversation.
await OpenIMSDK.setConversation({
conversationID,
isMarked: true,
});Set isMarked to false to unmark the conversation. The marked state belongs to the current account, and marked conversations appear in the built-in marked-conversation group. See Conversation group overview for group management.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
conversationID | string | Yes | Conversation ID to update. |
isMarked | boolean | No | Set true to mark or false to unmark. |
Return result
After the call completes, the conversation's isMarked state is updated. Changes in the conversation list are delivered through OnConversationChanged; see Retrieve the conversation list.
Was this page helpful?