diff --git a/NucleicRemote/NucleicRemote/Models/HostConnection.swift b/NucleicRemote/NucleicRemote/Models/HostConnection.swift index 37b1921..e020876 100644 --- a/NucleicRemote/NucleicRemote/Models/HostConnection.swift +++ b/NucleicRemote/NucleicRemote/Models/HostConnection.swift @@ -605,6 +605,13 @@ final class HostConnection { // This Mac minted a join code we asked for ("add a device to this mesh") — hand it up // to RemoteStore for the QR/copy sheet. callbacks.pairingCodeReceived(qr) + case .macPairRequested(let req): + // A Mac is joining via a code we shared and needs allow/deny — forward it up so the + // phone can approve the join. + callbacks.macPairRequested(req) + case .macPairResolved(let deviceID, _): + // Answered on this Mac or another device (or timed out) — dismiss the prompt. + callbacks.macPairResolved(deviceID) case .wireError(let error): if error.code == .channelMismatch { connectivity = .failed(error.message)