Don't double-process rebroadcast messages

This commit is contained in:
Jonathan Bennett
2026-01-04 14:24:51 -06:00
parent 8b5141ddb7
commit 1b13f872db

View File

@@ -1368,7 +1368,8 @@ void StoreForwardPlusPlusModule::rebroadcastLinkObject(link_object &lo)
p->encrypted.size = lo.encrypted_len;
memcpy(p->encrypted.bytes, lo.encrypted_bytes, lo.encrypted_len);
p->transport_mechanism = meshtastic_MeshPacket_TransportMechanism_TRANSPORT_LORA; // only a tiny white lie
service->sendToMesh(p, RX_SRC_RADIO, true); // Send to mesh, cc to phone
// Send to mesh, but don't cc the phone, to avoid a double message.
service->sendToMesh(p, RX_SRC_RADIO, false);
}
bool StoreForwardPlusPlusModule::checkCommitHash(StoreForwardPlusPlusModule::link_object &lo, uint8_t *commit_hash_bytes,