mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-22 18:34:29 +10:00
Update MeshCoreConnector to optimize GPS response handling and increment version to 9.0.0
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user