This commit is contained in:
callebtc
2025-10-22 05:09:16 +02:00
parent 1296e117ba
commit fcbecd4ef6
2 changed files with 24 additions and 18 deletions
@@ -251,14 +251,10 @@ class BluetoothMeshService(private val context: Context) {
val signedPacket = signPacketBeforeBroadcast(packet)
val routed = RoutedPacket(signedPacket)
connectionManager.broadcastPacket(routed)
// Cross-transport relay to WiFi Aware if available
try { com.bitchat.android.wifiaware.WifiAwareController.getService()?.broadcastRoutedPacket(routed) } catch (_: Exception) { }
}
override fun relayPacket(routed: RoutedPacket) {
connectionManager.broadcastPacket(routed)
// Cross-transport relay to WiFi Aware if available
try { com.bitchat.android.wifiaware.WifiAwareController.getService()?.broadcastRoutedPacket(routed) } catch (_: Exception) { }
}
override fun getBroadcastRecipient(): ByteArray {