SDKsuni-appEnterprise
Get pinned messages in a conversation
OpenIM uni-app / uni-app x SDK guide for Get pinned messages in a conversation.
import { getConversationPinnedMsg } from '@/uni_modules/unix-openim-sdk'
const result = await getConversationPinnedMsg({ conversationID })
replacePinnedMessages(conversationID, result?.messages ?? [])This is Commercial. The Promise returns the conversation's current pinned-message snapshot. Follow the returned DTO's message-list and pagination fields, and see Message overview for message fields.
The query does not emit a pin-change event. Deduplicate by clientMsgID, merge deletion, revocation, and modification events into displayed message content, and reload the pinned snapshot after the raw event described in Pin or unpin a message.
Was this page helpful?