clearMessagesUnreadStatus

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

Clears the unread message count for a specific conversation.

Note: Not supported for chatrooms and ultra groups.

Since

5.1.1

Parameters

conversationType

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

targetId

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

channelId

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

callback

Callback indicating whether the operation was successful.


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

Clears the unread message count for a specific conversation.

Note: Not supported for chatrooms or ultra groups.

Since

5.1.1

Parameters

conversationType

The type of conversation. Chatrooms are not supported.

targetId

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

channelId

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

timestamp

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

callback

Callback indicating whether the operation was successful.