From 9b14ff4e1adbae31cfad72a98ebb0be6c0a1441e Mon Sep 17 00:00:00 2001 From: Janez T Date: Mon, 16 Mar 2026 21:54:53 +0100 Subject: [PATCH] Remove relay info from contact card --- lib/widgets/contacts/contact_trace_sheet.dart | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/lib/widgets/contacts/contact_trace_sheet.dart b/lib/widgets/contacts/contact_trace_sheet.dart index 663a0a8..543a49b 100644 --- a/lib/widgets/contacts/contact_trace_sheet.dart +++ b/lib/widgets/contacts/contact_trace_sheet.dart @@ -100,9 +100,6 @@ class _ContactTraceSheetState extends State { .map((node) => LatLng(node.latitude, node.longitude)) .toList(); final hasMapPath = mapPoints.length >= 2; - final relayNodes = trace.matchedRelayNodes - .map((entry) => entry.node) - .whereType(); return SizedBox( height: MediaQuery.of(context).size.height * 0.75, @@ -275,34 +272,7 @@ class _ContactTraceSheetState extends State { : null, ), ), - const SizedBox(height: 12), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 16), - child: Text( - 'Relays (${relayNodes.length})', - style: Theme.of(context).textTheme.titleMedium, - ), - ), - if (relayNodes.isEmpty) - const Padding( - padding: EdgeInsets.symmetric( - horizontal: 16, - vertical: 8, - ), - child: Text( - 'No relay nodes could be matched for this contact.', - ), - ), - ...relayNodes.map( - (node) => ListTile( - leading: const Icon(Icons.router), - title: Text(node.name), - subtitle: Text( - '${node.publicKey.substring(0, math.min(12, node.publicKey.length))} • ' - '${node.latitude.toStringAsFixed(5)}, ${node.longitude.toStringAsFixed(5)}', - ), - ), - ), + const SizedBox(height: 16), ], ), ),