Skip to content

Commit 8fa16c7

Browse files
square-tombclaude
andcommitted
fix(mobile): drop the duplicate community import after rebase
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Tom Brow <[email protected]>
1 parent 3e5ebc5 commit 8fa16c7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎mobile/lib/features/agents/agent_identity_sections.dart‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
22
import 'package:flutter_hooks/flutter_hooks.dart';
33
import 'package:hooks_riverpod/hooks_riverpod.dart';
44

5-
import '../../shared/community/community_provider.dart';
65
import '../../shared/agents/remote_agents.dart';
76
import '../../shared/community/community_provider.dart';
87
import '../../shared/theme/theme.dart';
@@ -24,16 +23,14 @@ class AgentIdentitySections extends HookConsumerWidget {
2423
Widget build(BuildContext context, WidgetRef ref) {
2524
useListenable(controller);
2625
useListenable(controller.account.subjectChanges);
27-
final unknown = agentLocationUnknown(
28-
ref.watch(activeCommunityProvider).asData?.value,
29-
controller,
30-
);
26+
final community = ref.watch(activeCommunityProvider).asData?.value;
27+
final unknown = agentLocationUnknown(community, controller);
3128
final remote = controller.agents.any(
3229
(agent) => agent['agent_pubkey'] == pubkey,
3330
);
3431
// Remote instructions come from the registry row, listed for the active
3532
// community's owner only (as the agents page decides).
36-
final owner = ref.watch(activeCommunityProvider).asData?.value?.pubkey;
33+
final owner = community?.pubkey;
3734
final row = owner != null && controller.owner == owner
3835
? controller.agents
3936
.where((agent) => agent['agent_pubkey'] == pubkey)

0 commit comments

Comments
 (0)