renameFriendGroup method

  1. @override
Future<V2TimCallback> renameFriendGroup({
  1. required String oldName,
  2. required String newName,
})
override

修改好友分组的名称

参数

oldName	旧的分组名称
newName	新的分组名称
callback	回调(web无回调)

Implementation

@override
Future<V2TimCallback> renameFriendGroup({
  required String oldName,
  required String newName,
}) async {
  Map<String, dynamic> param = {
    "oldName": oldName,
    "newName": newName,
  };
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "renameFriendGroup",
        buildFriendManagerParam(
          param,
        ),
      ),
    ),
  );
  log("renameFriendGroup", param, resp.toLogString());
  return resp;
}