mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
Ignore advertisements from self in MeshCoreConnector
This commit is contained in:
parent
63aa515f52
commit
cdda232006
1 changed files with 6 additions and 0 deletions
|
|
@ -3466,8 +3466,14 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||
return;
|
||||
}
|
||||
|
||||
if (publicKey == _selfPublicKey) {
|
||||
appLogger.info('Ignoring advert from self', tag: 'Connector');
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if this is a new contact
|
||||
final isNewContact = !_knownContactKeys.contains(contactKeyHex);
|
||||
|
||||
if (isNewContact) {
|
||||
final newContect = Contact(
|
||||
publicKey: publicKey,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue