Browse SDKs · React Native
SDKsReact NativeEnterprise

Mark or unmark a conversation

Mark or unmark a conversation for the current account.

Copy

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

ParameterTypeRequiredDescription
conversationIDstringYesConversation ID to update.
isMarkedbooleanNoSet 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.