Improve logging

This commit is contained in:
Leon Böttger committed 2025-09-11 15:47:12 +02:00
1 parent 6def7dbc9f
commit f786af9d12
1 file changed
+7
@@ -392,6 +392,13 @@ class InboundNearbyConnection: NearbyConnection {
let pkeFrame = frame.v1.pairedKeyEncryption
if pkeFrame.secretIDHash.isEmpty {
log("[InboundNearbyConnection \(self.id)] Detected legacy peer.")
}
else {
log("[InboundNearbyConnection \(self.id)] Detected QuickDrop peer.")
}
// Check if we can accept the connection automatically
if !pkeFrame.secretIDHash.isEmpty,
let trustedCertData = TrustStore.shared.findTrustedKey(for: pkeFrame.secretIDHash),