* companion: fix for importContact(). Now removes the packet-hash from table, before 'replaying'

This commit is contained in:
Scott Powell
2025-05-16 19:57:09 +10:00
parent 1680eb29aa
commit b11f43987b
3 changed files with 26 additions and 0 deletions

View File

@@ -373,6 +373,7 @@ bool BaseChatMesh::importContact(const uint8_t src_buf[], uint8_t len) {
if (pkt) {
if (pkt->readFrom(src_buf, len) && pkt->getPayloadType() == PAYLOAD_TYPE_ADVERT) {
pkt->header |= ROUTE_TYPE_FLOOD; // simulate it being received flood-mode
getTables()->clear(pkt); // remove packet hash from table, so we can receive/process it again
_pendingLoopback = pkt; // loop-back, as if received over radio
return true; // success
} else {