clearMessagesUnreadStatus

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

清除某个会话中的未读消息数。

注意:不支持聊天室!

Parameters

conversationType

会话类型,不支持聊天室。参考 Conversation.ConversationType 。

targetId

会话 id。根据不同的 conversationType,可能是用户 id、讨论组 id、群组 id。

callback

清除是否成功的回调。


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

清除某个会话中的未读消息数。

注意:不支持聊天室!

Parameters

conversationType

会话类型,不支持聊天室。

targetId

会话 id。根据不同的 conversationType,可能是用户 id、讨论组 id、群组 id。

timestamp

该会话已阅读的最后一条消息的发送时间戳。参考 getSentTime。

callback

清除是否成功的回调。