From a0efbbe4bd7446e0eb2fa6c6b66269300c039a8d Mon Sep 17 00:00:00 2001 From: Winston Lowe Date: Tue, 3 Mar 2026 17:44:28 -0800 Subject: [PATCH] Persist Discovered Contacts when updated --- lib/connector/meshcore_connector.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index d71cc75..bc5e654 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -4051,7 +4051,7 @@ class MeshCoreConnector extends ChangeNotifier { Uint8List rawPacket, { bool noNotify = false, }) { - debugPrint('Discovered new contact: ${contact.name}'); + appLogger.info('Discovered new contact: ${contact.name}', tag: 'Connector'); final existingIndex = _discoveredContacts.indexWhere( (c) => c.publicKeyHex == contact.publicKeyHex, @@ -4071,6 +4071,7 @@ class MeshCoreConnector extends ChangeNotifier { lastSeen: contact.lastSeen, ); notifyListeners(); + unawaited(_persistDiscoveredContacts()); return; }