TIMConvDeleteConversationsFromGroup

Introduction

Delete conversations from conversation group

Supported from the 6.5 version of the sdk

Only works with Ultimate edition

Parameter details

Parameter name Parameter type Required Description
deleteConvFromGroupParam createConversationGroupParam yes Param of deleting conversations from conversation group

Returned template

Promise<commonResult<Array<TIMConversationOperationResult>>>

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

Return value details

name type description
code TIMResultTIMErrCode Request result: Error codes. 0 means success.
desc string | undefined The description of the error. It will be empty if success.
json_param TIMConversationOperationResult[] | undefined Return value of calling API
json_params TIMConversationOperationResult[] | undefined Return value of calling API. Compatible field, which is returned in some cases.
user_data string | undefined ImSDK is responsible for transporting user-defined data without any processing

Code example

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 ""