setConversationNotificationLevel

public abstract void setConversationNotificationLevel(ConversationType conversationType, String targetId, IRongCoreEnum.PushNotificationLevel level, IRongCoreCallback.OperationCallback callback)

Specifies the Do Not Disturb settings for a conversation.

Note: When this API is called for an ultra group, it sets the Do Not Disturb level for the channel with an empty channelId. It does not mute all channels under the entire ultra group conversation.

Since

5.2.2

Parameters

conversationType

The type of conversation. Chatroom type is not supported because chatrooms do not accept message reminders by default.

targetId

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

level

The message reminder level for the conversation.

callback

The callback for the setting status.