RongIMLib View Markdown
    Preparing search index...

    Function clearUnreadCountByTimestamp

    • 清除时间戳前的未读数

      Parameters

      Returns Promise<RCResult<void>>

      清除时间戳前的未读数,仅支持 Electron 平台,不支持清理超级群会话

      清除时间戳前的未读数示例:

      const conversation = {
      conversationType: RongIMLib.ConversationType.PRIVATE,
      targetId: 'targetId',
      }
      const timestamp = 1626955200000;
      const clearRes = await RongIMLib.clearUnreadCountByTimestamp(conversation, timestamp);
      console.info('清除时间戳前的未读数结果:', clearRes);