会话类型列表
免打扰级别列表,传空数组则获取全部免打扰级别未读数
返回一个 RCResult 类型 Promise,data 中返回会话未读数
获取会话指定免打扰级别未读 @ 消息数示例:
const conversationTypes = [RongIMLib.ConversationType.PRIVATE];
const levels = [RongIMLib.NotificationLevel.ALL_MESSAGE];
const totalUnreadCount = await RongIMLib.getTotalUnreadMentionedCountByLevels(conversationTypes, levels);
console.info('获取会话指定免打扰级别未读 @ 消息数结果:', totalUnreadCount);
获取会话指定免打扰级别未读 @ 消息数