renameConversationGroup static method
Future<V2TimCallback>
renameConversationGroup(
{ - required String oldName,
- required String newName,
})
Implementation
static Future<V2TimCallback> renameConversationGroup({
required String oldName,
required String newName,
}) async {
String userData = Tools.generateUserData();
Pointer<Uint8> user_data = Tools.string2PointerInt8(userData);
Pointer<Uint8> old_name = Tools.string2PointerInt8(oldName);
Pointer<Uint8> new_name = Tools.string2PointerInt8(newName);
int res = desktopSDK.D_TIMConvRenameConversationGroup(old_name, new_name, user_data);
if (res != TIMResult.TIM_SUCC) {
return V2TimCallback.fromJson({
"code": res,
"desc": "",
});
} else {
Map<String, dynamic> data = await getAsyncData(apiKey: userData);
return V2TimCallback.fromJson({
"code": res,
"desc": "",
});
}
}