changeGroupOwner method
将群转给其他人,需要群主调用
Implementation
Future<EMGroup> changeGroupOwner(
String groupId,
String newOwner,
) async {
Map req = {'groupId': groupId, 'owner': newOwner};
Map result = await _channel.invokeMethod(EMSDKMethod.updateGroupOwner, req);
EMError.hasErrorFromResult(result);
return EMGroup.fromJson(result[EMSDKMethod.updateGroupOwner]);
}