diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 9601f38f..538ee38a 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -3788,6 +3788,14 @@ class MeshCoreConnector extends ChangeNotifier { _usbManager.updateConnectedLabel(selfName); } + // GPS poll responses arrive as RESP_CODE_SELF_INFO but are not the real + // handshake — only update location and notify, skip store reloads and + // contact sync which would clear and re-fetch contacts every minute. + if (!wasAwaitingSelfInfo) { + notifyListeners(); + return; + } + //set all the stores' public key so they can load the correct data _channelMessageStore.setPublicKeyHex = selfPublicKeyHex; _messageStore.setPublicKeyHex = selfPublicKeyHex; @@ -3814,12 +3822,6 @@ class MeshCoreConnector extends ChangeNotifier { _selfInfoRetryTimer = null; notifyListeners(); - if (PlatformInfo.isWeb && - _activeTransport == MeshCoreTransportType.bluetooth && - !wasAwaitingSelfInfo) { - return; - } - // Auto-fetch contacts after getting self info. On web BLE, defer this // until after channel 0 so startup writes stay serialized. if (PlatformInfo.isWeb && diff --git a/pubspec.yaml b/pubspec.yaml index 6d5c4ae3..7b43dded 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 8.0.0+11 +version: 9.0.0+12 environment: sdk: ^3.9.2