fix(useragent): upgraded to new protocol changes
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:arbiter/proto/user_agent/sdk_client.pb.dart' as ua_sdk;
|
||||
import 'package:arbiter/providers/sdk_clients/list.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'details.g.dart';
|
||||
|
||||
@riverpod
|
||||
Future<SdkClientEntry?> clientDetails(Ref ref, int clientId) async {
|
||||
Future<ua_sdk.Entry?> clientDetails(Ref ref, int clientId) async {
|
||||
final clients = await ref.watch(sdkClientsProvider.future);
|
||||
if (clients == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user