Prevent notifications for chat and sensor adverts without a valid path

This commit is contained in:
Winston Lowe 2026-02-15 21:16:42 -08:00
parent a68e1dd428
commit 36401210ce

View file

@ -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;
}