getUserStatus method

  1. @override
Future<List<V2TimUserStatus>> getUserStatus({
  1. required List<String> userIDList,
})
override

Implementation

@override
Future<List<V2TimUserStatus>> getUserStatus({
  required List<String> userIDList,
}) async {
  final res = await TencentImSDKPlugin.v2TIMManager
      .getUserStatus(userIDList: userIDList);
  if (res.code == 0) {
    return res.data ?? [];
  } else {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: res.desc,
        errorCode: res.code));
    return [];
  }
}