Browse SDKs · iOS
SDKsiOS

Pin or unpin a conversation

Set a conversation’s pinned state with OpenIM iOS SDK.

Copy
[[OIMManager manager] pinConversation:conversationID
                             isPinned:YES
                            onSuccess:nil
                            onFailure:nil];

Pass YES to pin the conversation or NO to unpin it. A successful callback means that the request has completed, not that onConversationChanged: has already arrived. Merge the subsequent conversation update by conversationID.