Browse SDKs · Flutter
SDKsFlutterEnterprise

Retrieve pinned conversation messages

Use the Flutter SDK to retrieve a snapshot of pinned messages in a conversation.

Copy
final messages = await OpenIM.iMManager.messageManager
    .getConversationPinnedMsg(conversationID: conversationID);
replacePinnedMessages(conversationID, messages);

The Future returns List<Message> without the pin time or operator. This query does not trigger onChangedPinnedMsg. Deduplicate the snapshot by non-empty clientMsgID values. See Pin or unpin a message for handling changes.