Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Mark or unmark a conversation

Toggle the marked status on a conversation for categorization using the OpenIM React Native SDK.

Copy

Set or clear the marked flag on a conversation for the current account. Marked conversations can be highlighted or organized into custom flagged views:

await OpenIMSDK.setConversation({
  conversationID,
  isMarked: true,
});

Pass false for isMarked to unmark the conversation. To manage conversation grouping, see Conversation groups overview.

Parameters

ParameterTypeRequiredDescription
conversationIDstringYesTarget conversation ID to update.
isMarkedbooleanNoSet true to mark the conversation, or false to clear the mark.

Return value

A resolved Promise confirms that the marked status of the conversation has been updated.

State changes trigger the OnConversationChanged event. Use conversationID to locate the target conversation entry in your state store and reconcile its isMarked value. For complete event listeners, see Retrieve conversation list.