RongIMLib View Markdown
    Preparing search index...

    Function getUnreadMentionedCount

    • 获取单个群(或超级群)会话的 @ 消息未读数

      Parameters

      Returns Promise<RCResult<number>>

      获取单个群会话 @ 消息未读数示例:

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