RongIMLib View Markdown
    Preparing search index...

    Function getMessageCount

    • 获取会话所有消息数

      Parameters

      Returns Promise<RCResult<number>>

      本接口仅适用 Electron 平台,获取指定会话下的所有消息数

      5.7.2

      获取会话所有消息数示例:

      const conversation = {
      conversationType: RongIMLib.ConversationType.PRIVATE,
      targetId: 'targetId',
      };
      const res = await RongIMLib.electronExtension.getMessageCount(conversation);
      console.info('获取会话所有消息数结果:', res);