mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-14 22:55:12 +10:00
Ignore advertisements from self in MeshCoreConnector
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user