deleteGroupAttributes
Introduction
Delete some attributes from the group.
It will delete all attributes, if the keys is null.
Only works with AVChatRoom temporarily.
initGroupAttributes, setGroupAttributes, deleteGroupAttributes methods calculate request rate merged: SDK limit rate at 5 seconds 10 times, and the 8511 error code is returned after over limit; The server limit rate at 5 times in a second, and 10049 error code is returned after exceeding the limit.
Parameter details
Parameter name | Parameter type | Required | Description |
---|---|---|---|
groupID | string | yes | The group ID. |
keys | string[] | yes | The keys of the attributes to be deleted. |
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 deleteGroupAttributesRes = await TencentImSDKPlugin.v2TIMManager
.getGroupManager()
.deleteGroupAttributes('groupID', ['custom']);
if (deleteGroupAttributesRes.code === 0) {
}