Handle only packets addressed to me (#184)

* skip private packets not to us

* logs
This commit is contained in:
callebtc
2025-07-25 02:32:36 +02:00
committed by GitHub
parent 167237f7c0
commit 9b7009137c
3 changed files with 54 additions and 26 deletions
@@ -70,7 +70,7 @@ class PacketRelayManager(private val myPeerID: String) {
/**
* Check if a packet is specifically addressed to us
*/
private fun isPacketAddressedToMe(packet: BitchatPacket): Boolean {
internal fun isPacketAddressedToMe(packet: BitchatPacket): Boolean {
val recipientID = packet.recipientID
// No recipient means broadcast (not addressed to us specifically)