SDKsWASMEnterprise
Get members who read a group message
Retrieve members who have or have not read a group message using pagination.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
conversationID | string | Yes | ID of the group conversation. |
clientMsgID | string | Yes | ID of the message whose reader list to query. |
filter | GroupMessageReaderFilter | Yes | Whether to retrieve members who have read or have not read the message. |
offset | number | Yes | Pagination offset. Pass 0 for the first page. |
count | number | Yes | Maximum number of members to retrieve. |
| Enum value | Numeric value | Meaning |
|---|---|---|
GroupMessageReaderFilter.Read | 0 | Members who have read the message. |
GroupMessageReaderFilter.UnRead | 1 | Members who have not read the message. |
import { GroupMessageReaderFilter } from '@openim/wasm-client-sdk';
const { data: members } = await openimsdk.getGroupMessageReaderList({
conversationID,
clientMsgID,
filter: GroupMessageReaderFilter.Read,
offset: 0,
count: 50,
});When the Promise resolves, data is the current page of GroupMemberItem[]. For field descriptions, see List group members. Deduplicate by groupID:userID. The query establishes a snapshot and does not trigger a receipt event. Continue paging when the complete list is required.
Was this page helpful?