Additionally null it out on send

This commit is contained in:
Ben Meadors 2025-05-27 18:37:35 -05:00
parent 065bedceb4
commit 22a2d68723

View File

@ -81,8 +81,11 @@ meshtastic_MeshPacket *NodeInfoModule::allocReply()
ignoreRequest = true; // Mark it as ignored for MeshModule
return NULL;
} else {
ignoreRequest = false; // Don't ignore requests anymore
meshtastic_User &u = owner;
ignoreRequest = false; // Don't ignore requests anymore
meshtastic_User u = owner; // Create a copy to avoid modifying the global owner
// Null out user.id on transmit
u.id[0] = 0;
// Strip the public key if the user is licensed
if (u.is_licensed && u.public_key.size > 0) {