Const支持按照 NotificationLevel 类型进行免打扰级别设置,级别描述如下:
需要设置的免打扰级别,类型为 NotificationLevel
设置会话免打扰示例:
const options = {
conversationType: RongIMLib.ConversationType.PRIVATE,
targetId: 'targetId',
}
const notificationLevel = RongIMLib.NotificationLevel.NOT_MESSAGE_NOTIFICATION;
const res = await RongIMLib.setConversationNotificationLevel(options, notificationLevel);
console.info('设置会话免打扰结果:', res);
设置会话免打扰