Browse SDKs · WASM
SDKsWASM

Mark or unmark a conversation

Set the current user’s marked state for a conversation.

Copy

isMarked is a per-user conversation mark. After a conversation is marked, it appears in the built-in “Marked” conversation group. When it is unmarked, it is removed from that filtered group. The group is maintained from conversation mark state, so you do not need to call the conversation-group member APIs to add or remove it manually.

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

Pass false to unmark it. This field is not pinning state and does not change the group or any message content. See Conversation group overview for the conversation-group data model, queries, and incremental events.

A successful Promise means that the request has completed. Merge the latest isMarked value from OnConversationChanged by conversationID; see Get the conversation list for the complete listener.