clearMessagesUnreadStatus
public abstract void clearMessagesUnreadStatus( ConversationType conversationType, String targetId, String channelId, IRongCoreCallback.ResultCallback<Boolean> callback)
清除某个会话中的未读消息数。
注意:不支持聊天室,不支持超级群
Since
5.1.1
Parameters
conversationType
会话类型,不支持聊天室。参考 Conversation.ConversationType 。
targetId
会话 id。根据不同的 conversationType,可能是用户 id、讨论组 id、群组 id。
channelId
消息所属会话的业务标识。
callback
清除是否成功的回调。
public abstract void clearMessagesUnreadStatus( ConversationType conversationType, String targetId, String channelId, long timestamp, IRongCoreCallback.OperationCallback callback)
清除某个会话中的未读消息数。
注意:不支持聊天室,不支持超级群
Since
5.1.1
Parameters
conversationType
会话类型,不支持聊天室。
targetId
会话 id。根据不同的 conversationType,可能是用户 id、讨论组 id、群组 id。
channelId
消息所属会话的业务标识。
timestamp
该会话已阅读的最后一条消息的发送时间戳。参考 getSentTime。
callback
清除是否成功的回调。