renameFriendGroup

Introduction

Change the name of a friend group.

Parameter details

Parameter name Parameter type Required Description
oldName string yes The original name of the group.
newName string yes The new name of the group.

Returned template

V2TimCallback

{
    code : number
    desc : string
}

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.

Code example

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


const renameFriendGroupRes = await TencentImSDKPlugin.v2TIMManager
    .getFriendshipManager()
    .renameFriendGroup(
        ' oldName',
        'newName'
    );
if (renameFriendGroupRes.code === 0) {

}

results matching ""

    No results matching ""