deleteFriendsFromFriendGroup

Introduction

Delete friends from group.

Parameter details

Parameter name Parameter type Required Description
groupName string yes The name of the group.
userIDList string[] yes The list of user IDs to delete from group.

Returned template

V2TimValueCallback<V2TimFriendOperationResult[]>

{
    code : number
    desc : string
    data : V2TimFriendOperationResult[]
}

Return value details

name type description
code number Request result: Error codes. 0 means success.
desc string The description of the error. It will be empty if success.
data V2TimFriendOperationResult[] The list of operation result.

Code example

import { TencentImSDKPlugin } from 'react-native-tim-js';


const deleteFriendsFromFriendGroupRes = await TencentImSDKPlugin.v2TIMManager
    .getFriendshipManager()
    .deleteFriendsFromFriendGroup(
        'groupName',
        []
    );
if (deleteFriendsFromFriendGroupRes.code === 0) {

    deleteFriendsFromFriendGroupRes.data?.forEach((element) => {
        element.resultCode;
        element.resultInfo;
        element.userID;
    });
}

results matching ""

    No results matching ""