设置超级群或频道的默认免打扰级别参数,包含会话类型、目标 Id、频道 Id,类型为 IUltraGroupOption 设置超级群默认通知配置 options: { targetId: 'xxx' }, channelId 不传或传 '' 设置超级群指定频道默认通知配置 options: { targetId: 'xxx', channelId: 'xxx' }
免打扰级别
5.3.0 以后 notificationLevel 类型为 NotificationLevel
const options = {
targetId: 'targetId',
channelId: 'channelId',
};
const notificationLevel = RongIMLib.NotificationLevel.NOT_MESSAGE_NOTIFICATION;
const res = await RongIMLib.setUltraGroupDefaultNotificationLevel(options, notificationLevel);
console.log('设置指定超级群或频道的默认免打扰级别结果:', res);
设置指定超级群或频道的默认免打扰级别