addAdmin method

Future<void> addAdmin(
  1. String groupId,
  2. String memberId
)

~english Adds a group admin.

Only the group owner can call this method and group admins cannot.

Param groupId The group ID.

Param memberId The username of the admin to add.

Throws A description of the exception. See EMError. ~end

~chinese 添加群组管理员。

仅群主可调用此方法,管理员无权限。

Param groupId 群组 ID。

Param memberId 要添加的管理员的用户 ID。

Return 返回更新后的群组对象。

Throws 如果有异常会在此抛出,包括错误码和错误信息,详见 EMError。 ~end

Implementation

Future<void> addAdmin(
  String groupId,
  String memberId,
) async {
  throw UnimplementedError("not implemented");
}