clearMessagesUnreadStatus

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

Clears the unread message count for a specific conversation.

Note: Not supported for chatrooms or ultra groups.

Since

5.0.0

Parameters

conversationType

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

targetId

The conversation ID. Depending on the conversationType, it 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, IRongCoreCallback.OperationCallback callback)

Clears the unread message count for a specific conversation.

Note: Not supported for chatrooms or ultra groups

Since

5.0.0

Parameters

conversationType

The type of conversation. Chatrooms are not supported.

targetId

The conversation ID. Depending on the conversationType, it 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.