RongIMLib View Markdown
    Preparing search index...

    Function batchDeleteConversations

    • 批量删除会话,支持同时删除单聊、群聊、超级群、系统会话等不同类型的多个会话

      Parameters

      Returns Promise<RCResult<void>>

      5.26.0

      批量删除会话示例:

      const params = {
      identifiers: [
      {
      conversationType: RongIMLib.ConversationType.PRIVATE,
      targetId: 'targetId',
      channelId: 'channelId',
      },
      ],
      deleteRemotely: false, // 是否删除服务器端会话
      deleteMessages: false, // 是否删除会话中的消息
      }
      const result = await RongIMLib.batchDeleteConversations(params);