joinGroup method

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

Implementation

@override
Future<V2TimCallback> joinGroup({
  required String groupID,
  required String message,
}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .joinGroup(groupID: groupID, message: message);
  if (result.code != 0) {
    String recommendText = ErrorMessageConverter.getErrorMessage(result.code);
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code,
        infoRecommendText: recommendText));
  }
  return result;
}