setConversationChannelNotificationLevel

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

Sets the message reminder status for a conversation. To cancel the setting, call this method and pass PUSH_NOTIFICATION_LEVEL_ALL_MESSAGE as the level parameter.

Note: Not supported for chatrooms!

Note: For ultra groups, this API is used to set the Do Not Disturb status for specific channels.

Since

5.2.2

Parameters

conversationType

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

targetId

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

channelId

The business identifier of the conversation to which the message belongs.

level

The message reminder level to set for the conversation.

callback

The callback for the setting status.