mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
Ensure contact sync waits
This commit is contained in:
@@ -1895,12 +1895,9 @@ class AppProvider with ChangeNotifier {
|
||||
// Get battery and storage information
|
||||
await connectionProvider.getBatteryAndStorage();
|
||||
|
||||
// Load contacts
|
||||
// Load contacts (waits for device to finish sending all contacts)
|
||||
await connectionProvider.getContacts();
|
||||
|
||||
// Small delay to ensure contacts are fully loaded
|
||||
await Future.delayed(const Duration(milliseconds: 500));
|
||||
|
||||
// Sync all channels so slot assignment and channel state mirror the device.
|
||||
final channelsToSync = connectionProvider.deviceInfo.maxChannels;
|
||||
debugPrint(
|
||||
|
||||
Reference in New Issue
Block a user