inviteUserToGroup method

  1. @override
Future<V2TimValueCallback<List<V2TimGroupMemberOperationResult>>> inviteUserToGroup({
  1. required String groupID,
  2. required List<String> userList,
})
override

Implementation

@override
Future<V2TimValueCallback<List<V2TimGroupMemberOperationResult>>>
    inviteUserToGroup({
  required String groupID,
  required List<String> userList,
}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getGroupManager()
      .inviteUserToGroup(groupID: groupID, userList: userList);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}