Add contact import functionality and update UI feedback for import status
This commit is contained in:
1 parent
eeb8ff34e8
commit
d0c8fab6fb
3 files changed
+59
-9
No files matched your search
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user