SDKsiOSEnterprise
Retrieve pinned messages
Retrieve a snapshot of pinned messages in a conversation with OpenIM iOS SDK.
[[OIMManager manager] getConversationPinnedMsgWithConversationID:conversationID
onSuccess:^(NSArray<OIMMessageInfo *> *messages) {
[self replacePinnedMessages:messages ?: @[] conversationID:conversationID];
}
onFailure:nil];The success array contains messages only; it does not include the pin time or operator. The query itself does not trigger an event. Deduplicate by clientMsgID. Detailed changes are synchronized through the delegate owned by Pin or unpin a message.
Was this page helpful?