获取单个群(或超级群)会话的 @ 消息未读数
会话信息
获取单个群会话 @ 消息未读数示例:
const options = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId', channelId: 'channelId', // 超级群频道 ID,仅超级群会话需要}const count = await RongIMLib.getUnreadMentionedCount(options);console.info('获取单个群会话 @ 消息未读数结果:', count); Copy
const options = { conversationType: RongIMLib.ConversationType.PRIVATE, targetId: 'targetId', channelId: 'channelId', // 超级群频道 ID,仅超级群会话需要}const count = await RongIMLib.getUnreadMentionedCount(options);console.info('获取单个群会话 @ 消息未读数结果:', count);
获取单个群(或超级群)会话的 @ 消息未读数