Skip to main content

Mark the specified conversation as unread. To clear the marked unread state, call Clear Unread Count for a Single Conversation. The marked state is automatically synchronized to the current user's devices.

Parameters

NameTypeDescriptionVersion
conversationConversationConversation identifier1.3.0
callbackISimpleCallbackResult callback1.3.0

Code Example

Conversation c = new Conversation(Conversation.ConversationType.GROUP, "groupId1");
JIM.getInstance().getConversationManager().setUnread(c, new IConversationManager.ISimpleCallback() {
@Override
public void onSuccess() {

}

@Override
public void onError(int errorCode) {

}
});