mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
Prevent notifications for chat and sensor adverts without a valid path
This commit is contained in:
parent
a68e1dd428
commit
36401210ce
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue