clearMessagesUnreadStatus

public abstract void clearMessagesUnreadStatus(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<Boolean> callback)

Clears the unread message count for a specific conversation.

Note: Not supported for chatrooms!

Parameters

conversationType

The type of conversation. Chatrooms are not supported. Refer to Conversation.ConversationType.

targetId

The ID of the conversation. Depending on the conversationType, this could be a user ID, discussion group ID, or group ID.

callback

Callback indicating whether the operation was successful.


public abstract void clearMessagesUnreadStatus(ConversationType conversationType, String targetId, long timestamp, RongIMClient.OperationCallback callback)

Clears the unread message count for a specific conversation.

Note: Chatrooms are not supported!

Parameters

conversationType

The type of conversation. Chatrooms are not supported.

targetId

The ID of the conversation. Depending on the conversationType, this could be a user ID, discussion group ID, or group ID.

timestamp

The timestamp of the last message read in this conversation. Refer to getSentTime.

callback

Callback indicating whether the operation was successful.