mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 22:05:59 +00:00
Cleanup
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user