better tracking of first announce seen (#502)

This commit is contained in:
callebtc
2025-10-30 00:39:24 +01:00
committed by GitHub
parent 80d897a022
commit a4ce8cc979
4 changed files with 44 additions and 23 deletions
@@ -84,6 +84,10 @@ class BluetoothConnectionManager(
// Public property for address-peer mapping
val addressPeerMap get() = connectionTracker.addressPeerMap
// Expose first-announce helpers to higher layers
fun noteAnnounceReceived(address: String) { connectionTracker.noteAnnounceReceived(address) }
fun hasSeenFirstAnnounce(address: String): Boolean = connectionTracker.hasSeenFirstAnnounce(address)
init {
powerManager.delegate = this