mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-11 19:17:04 +10:00
Ignore advertisements from self in MeshCoreConnector
This commit is contained in:
@@ -3466,8 +3466,14 @@ class MeshCoreConnector extends ChangeNotifier {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (publicKey == _selfPublicKey) {
|
||||||
|
appLogger.info('Ignoring advert from self', tag: 'Connector');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Check if this is a new contact
|
// Check if this is a new contact
|
||||||
final isNewContact = !_knownContactKeys.contains(contactKeyHex);
|
final isNewContact = !_knownContactKeys.contains(contactKeyHex);
|
||||||
|
|
||||||
if (isNewContact) {
|
if (isNewContact) {
|
||||||
final newContect = Contact(
|
final newContect = Contact(
|
||||||
publicKey: publicKey,
|
publicKey: publicKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user