TIMConvDeleteConversationsFromGroup

功能介绍

从会话分组中删除多个会话

从 6.5 版本开始支持

需要您购买旗舰版套餐

参数详解

参数名称 参数类型 是否必填 描述
deleteConvFromGroupParam createConversationGroupParam 添从会话分组中删除多个会话的参数

返回模板

Promise<commonResult<Array<TIMConversationOperationResult>>>

{
    code: TIMResult | TIMErrCode;
    desc?: string | undefined;
    json_param?: Array<TIMConversationOperationResult> | undefined;
    json_params?: Array<TIMConversationOperationResult> | undefined; // 兼容
    user_data?: string | undefined;
}

返回值详解

名称 数值类型 描述
code TIMResultTIMErrCode 返回状态码
desc string | undefined 返回描述
json_param TIMConversationOperationResult[] | undefined 根据具具体接口返回
json_params TIMConversationOperationResult[] | undefined 兼容的字段,某些情况下会返回这个,根据具体接口返回
user_data string | undefined ImSDK负责透传的用户自定义数据,未做任何处理

代码示例

import TimRender from "im_electron_sdk/dist/renderer";
const timRenderInstance = new TimRender();

let param: createConversationGroupParam = {
  group_name: "hello",
  conversation_id_array: ["group_@TGS#2B6MQRSHD"],
}
timRenderInstance.TIMConvDeleteConversationsFromGroup(param);

results matching ""

    No results matching ""