This commit is contained in:
Leon Böttger committed 2025-08-23 11:59:16 +02:00
1 parent 48164b8095
commit 448cc15a7e
2 files changed
+10 -5

No files matched your search

@@ -387,11 +387,10 @@ class InboundNearbyConnection: NearbyConnection {
private func processPairedKeyEncryptionFrame(_ frame: Sharing_Nearby_Frame) throws {
let pkeFrame = frame.v1.pairedKeyEncryption
log("[InboundNearbyConnection \(self.id)] Processing paired key encryption frame with secretIDHash: \(pkeFrame.secretIDHash.hex)")
log("Signed data: " + pkeFrame.signedData.hex)
guard frame.hasV1, frame.v1.hasPairedKeyEncryption else { throw NearbyError.requiredFieldMissing("shareNearbyFrame.v1.pairedKeyEncryption") }
let pkeFrame = frame.v1.pairedKeyEncryption
// Check if we can accept the connection automatically
if !pkeFrame.secretIDHash.isEmpty,