Browse SDKs · iOS
SDKsiOSEnterprise

Report group-message read status

Report group-message read receipts with OpenIM iOS SDK.

Copy
[[OIMManager manager] sendGroupMessageReadReceipt:conversationID
    clientMsgIDs:visibleClientMsgIDs
    onSuccess:nil
    onFailure:nil];

Every ID in one batch must belong to the target group conversation. A successful callback means only that the reporting request has completed, not that other clients have received the receipt. Maintain the conversation unread count through the separate conversation-read API.

Other clients receive member-level group read changes through onRecvGroupReadReceipt:. This page owns that delegate. Merge read counts, unread counts, and member information by conversationID + clientMsgID.

- (void)onRecvGroupReadReceipt:(OIMGroupMessageReceipt *)receipt {
    [self mergeGroupReceipt:receipt];
}

Register the stable listener that receives this callback with addAdvancedMsgListener: and remove it with removeAdvancedMsgListener:. For the complete lifecycle, see Receive messages. The reporting callback, group-receipt delegate, and member snapshot from Retrieve group-message readers are three separate stages.