Add contact import functionality and update UI feedback for import status

This commit is contained in:
Winston Lowe
2026-01-27 18:43:59 -08:00
parent eeb8ff34e8
commit d0c8fab6fb
3 changed files with 59 additions and 9 deletions
+7
View File
@@ -1680,6 +1680,12 @@ class MeshCoreConnector extends ChangeNotifier {
_isLoadingContacts = true;
notifyListeners();
break;
case pushCodeNewAdvert:
debugPrint('Got NEW_ADVERT');
_handleContact(frame);
notifyListeners();
unawaited(_persistContacts());
break;
case respCodeContact:
debugPrint('Got CONTACT');
_handleContact(frame);
@@ -1737,6 +1743,7 @@ class MeshCoreConnector extends ChangeNotifier {
break;
case respCodeCustomVars:
_handleCustomVars(frame);
break;
default:
debugPrint('Unknown frame code: $code');
}