setGroupMemberInfo method

  1. @override
Future<V2TimCallback> setGroupMemberInfo({
  1. required String groupID,
  2. required String userID,
  3. String? nameCard,
  4. Map<String, String>? customInfo,
})
override

Implementation

@override
Future<V2TimCallback> setGroupMemberInfo({
  required String groupID,
  required String userID,
  String? nameCard,
  Map<String, String>? customInfo,
}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getGroupManager()
      .setGroupMemberInfo(
          groupID: groupID,
          userID: userID,
          nameCard: nameCard,
          customInfo: customInfo);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}