sendReadReceiptMessage

public abstract void sendReadReceiptMessage(ConversationType conversationType, String targetId, String channelId, long timestamp)

Sends a read receipt for messages in a specific conversation.

For IMLib, you can register a listener using setReadReceiptListener; for IMKit, simply set rc_read_receipt to true in rc_config.xml.

Since

5.1.1

Parameters

conversationType

The type of conversation (only applicable to PRIVATE and ENCRYPTED types).

targetId

The ID of the conversation.

channelId

The business identifier of the conversation to which the message belongs.

timestamp

The timestamp of the last read message in the conversation getSentTime.


public abstract void sendReadReceiptMessage(ConversationType conversationType, String targetId, String channelId, long timestamp, IRongCoreCallback.ISendMessageCallback callback)

Sends a read receipt for messages in a specific conversation.

For IMLib, you can register a listener using setReadReceiptListener; for IMKit, directly set rc_read_receipt to true in rc_config.xml.

Since

5.1.1

Parameters

conversationType

The type of conversation (only applicable to PRIVATE and ENCRYPTED types)

targetId

The ID of the conversation

channelId

The business identifier of the conversation to which the message belongs

timestamp

The timestamp of the last read message in the conversation getSentTime

callback

The callback for sending the read receipt message