transferGroupOwner method

  1. @override
Future<V2TimCallback> transferGroupOwner({
  1. required String groupID,
  2. required String userID,
})
override

转让群主

注意

普通类型的群(Work、Public、Meeting):只有群主才有权限进行群转让操作。
直播群(AVChatRoom):不支持转让群主。

Implementation

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