Mark or unmark a conversation
Set the current user’s marked state for a conversation.
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 events that report later changes.
A successful Promise means that the request has completed. When OnConversationChanged arrives, use conversationID to update isMarked on the matching conversation. See Get the conversation list for the complete listener.
Was this page helpful?