Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Get group message readers

Query members who have or have not read a specific group message by page using the OpenIM React Native SDK.

Copy

Query members who have read or not yet read a specific group message with pagination:

Use this method to render the read/unread count badge beside a group message bubble and open the member reader list modal.

const members = await OpenIMSDK.getGroupMessageReaderList({
  conversationID,
  clientMsgID,
  filter: GroupMessageReaderFilter.Read,
  offset: 0,
  count: 50,
});

Parameters

ParameterTypeRequiredDescription
conversationIDstringYesTarget group conversation ID.
clientMsgIDstringYesClient message ID whose read status is being queried.
filterGroupMessageReaderFilterYesReader filter criteria. Use Read for members who have read the message, or Unread for members who have not yet read it.
offsetnumberYesPagination offset; pass 0 for the first page.
countnumberYesMaximum number of member records to retrieve.

Return value

A resolved Promise returns GroupMemberItem[] for the current page. Each member is uniquely identified by the composite key groupID:userID. For member attribute definitions, see Group overview. To load subsequent pages, increment offset by the number of members returned from previous pages.