acceptJoinApplication method
同意公开群组申请,当群类型是EMGroupStyle.PublicJoinNeedApproval, 有人申请进群时,管理员和群主会收到申请,用该方法同意申请
Implementation
Future<EMGroup> acceptJoinApplication(
String groupId,
String username,
) async {
Map req = {'groupId': groupId, 'username': username};
Map result =
await _channel.invokeMethod(EMSDKMethod.acceptJoinApplication, req);
EMError.hasErrorFromResult(result);
return EMGroup.fromJson(result[EMSDKMethod.acceptJoinApplication]);
}