fix wrongly sending hmac only to the init sender

This commit is contained in:
Green Sky 2024-08-07 21:33:13 +02:00
parent ecce043740
commit 3869731e0d
No known key found for this signature in database

View File

@ -636,9 +636,14 @@ bool ToxP2PRNG::handle_init_with_hmac(Contact3Handle c, const ByteSpan id, ByteS
} }
); );
// TODO: queue for (const auto peer : new_rng_state.contacts) {
// TODO: record result if (peer.all_of<Contact::Components::TagSelfStrong>()) {
send_hmac(c, id, ByteSpan{hmac}); continue; // skip self
}
// TODO: queue
// TODO: record send success
send_hmac(peer, id, ByteSpan{hmac});
}
// fire hmac event // fire hmac event
dispatch( dispatch(