From 36401210ce885cbf0ee7c439b6838be81189f59e Mon Sep 17 00:00:00 2001 From: Winston Lowe Date: Sun, 15 Feb 2026 21:16:42 -0800 Subject: [PATCH] Prevent notifications for chat and sensor adverts without a valid path --- lib/connector/meshcore_connector.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 410adb4..4af872c 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -3534,7 +3534,9 @@ class MeshCoreConnector extends ChangeNotifier { _directRepeaters.removeWhere((r) => r.isStale()); - if (contact.type == advTypeChat || contact.type == advTypeSensor) { + //We can use adverts from chat and sensor nodes, but only if the advert has a path to get the last hop. + if ((contact.type == advTypeChat || contact.type == advTypeSensor) && + path.isEmpty) { notifyListeners(); return; }