Update MeshCoreConnector to optimize GPS response handling and increment version to 9.0.0

This commit is contained in:
zjs81
2026-05-09 19:29:06 -07:00
parent 6900e5c3db
commit e92a66ff28
2 changed files with 9 additions and 7 deletions
+8 -6
View File
@@ -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 &&
+1 -1
View File
@@ -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