Skip to main content

Set Mute Notifications for a conversation. The setting is synchronized across clients. Mobile clients no longer receive offline pushes after it is set, and the SDK automatically updates the (conversation) mute property after a successful call.

Parameters

NameTypeDescriptionVersion
conversationConversationConversation identifier1.0.0
isMutebooleanYES enables Mute Notifications; NO disables it.1.0.0
callbackISimpleCallbackResult callback1.0.0

Code Example

Conversation conversation = new Conversation(Conversation.ConversationType.PRIVATE, "userId1");
JIM.getInstance().getConversationManager().setMute(conversation, true, new IConversationManager.ISimpleCallback() {
@Override
public void onSuccess() {

}

@Override
public void onError(int errorCode) {

}
});