SDKsuni-appEnterprise
Get members who read a group message
OpenIM uni-app / uni-app x SDK guide for Get members who read a group message.
getGroupMessageReaderList() is Commercial and paginates members who have or have not read a specific group message.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
conversationID | string | Yes | Group conversation ID. |
clientMsgID | string | Yes | Message whose readers are queried. |
filter | number | Yes | 0 for readers, 1 for unread members. |
offset | number | Yes | Pagination offset; start with 0. |
count | number | Yes | Number of members to request. |
import { getGroupMessageReaderList } from '@/uni_modules/unix-openim-sdk'
const result = await getGroupMessageReaderList({
conversationID, clientMsgID, filter: 0, offset: 0, count: 50,
})
const readers = result?.readers ?? []result?.readers is the current page of OpenIMGroupMemberItem[]. Continue by increasing offset and deduplicate by groupID:userID. The query creates a snapshot and emits no receipt event; refresh the detail because later receipts can change it.
Was this page helpful?