From efe15967b8e9402b9f2ffaec60fd1e67a3c06076 Mon Sep 17 00:00:00 2001 From: CC Date: Mon, 8 Jun 2026 23:55:53 +0200 Subject: [PATCH] fragments work --- .../bitchat/android/wifi-aware/WifiAwareMeshService.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/src/main/java/com/bitchat/android/wifi-aware/WifiAwareMeshService.kt b/app/src/main/java/com/bitchat/android/wifi-aware/WifiAwareMeshService.kt index 4eab93b3..1565d3e9 100644 --- a/app/src/main/java/com/bitchat/android/wifi-aware/WifiAwareMeshService.kt +++ b/app/src/main/java/com/bitchat/android/wifi-aware/WifiAwareMeshService.kt @@ -107,9 +107,6 @@ class WifiAwareMeshService(private val context: Context) : MeshService, Transpor private val handleToPeerId = ConcurrentHashMap() // discovery mapping private val discoveredTimestamps = ConcurrentHashMap() // peerID -> last seen time - // Timestamp dedupe - private val lastTimestamps = ConcurrentHashMap() - fun isRunning(): Boolean = isActive init { @@ -922,12 +919,6 @@ class WifiAwareMeshService(private val context: Context) : MeshService, Transpor Log.i(TAG, "RX: rebound Wi-Fi direct peer ${previousPeerId.take(8)} -> ${senderPeerHex.take(8)}") } - // Deduplicate based on timestamp + sender (standard flood fill protection) - val ts = pkt.timestamp - if (lastTimestamps.put(senderPeerHex, ts) == ts) { - continue - } - // Route the packet: // - peerID = Originator (who signed it) // - relayAddress = Neighbor (who sent it to us over this socket)