Ignore advertisements from self in MeshCoreConnector

This commit is contained in:
Winston Lowe 2026-02-15 11:44:49 -08:00
parent 63aa515f52
commit cdda232006

View file

@ -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,