SDKsReact Native
Pin or unpin a conversation
Pin or unpin a conversation for the current account.
Call pinConversation() to set whether a conversation is pinned.
await OpenIMSDK.pinConversation({
conversationID,
isPinned: true,
});Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
conversationID | string | Yes | Conversation ID to update. |
isPinned | boolean | Yes | Set true to pin or false to unpin. |
Return result
After the call completes, the conversation's isPinned state is updated. Changes in the conversation list are delivered through OnConversationChanged; see Retrieve the conversation list.
Was this page helpful?