deleteFromBlackList

Introduction

Remove users from the blacklist.

Parameter details

Parameter name Parameter type Required Description
userIDList string[] yes The list of user IDs to remove from blacklist.

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 deleteFromBlackListRes = await TencentImSDKPlugin.v2TIMManager
    .getFriendshipManager()
    .deleteFromBlackList(
        []
    );
if (deleteFromBlackListRes.code === 0) {

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

results matching ""

    No results matching ""