Add contact admin message (for QR code) (#6806)

This commit is contained in:
Ben Meadors authored and GitHub committed 2025-05-14 05:33:51 -05:00
1 parent a7415791a5
commit 0a8bd1e4be
3 files changed
+27

No files matched your search

+5
View File
@@ -286,6 +286,11 @@ bool AdminModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp, meshta
nodeDB->removeNodeByNum(r->remove_by_nodenum);
break;
}
case meshtastic_AdminMessage_add_contact_tag: {
LOG_INFO("Client received add_contact command");
nodeDB->addFromContact(r->add_contact);
break;
}
case meshtastic_AdminMessage_set_favorite_node_tag: {
LOG_INFO("Client received set_favorite_node command");
meshtastic_NodeInfoLite *node = nodeDB->getMeshNode(r->set_favorite_node);