Fix iOS build: handle mesh P5 transfer/peer wire cases on the phone
Mesh P5 (Mac↔Mac session transfer) added ClientMsg cases (addressUpdate, transferOffer/Chunk/Commit/Cancel) and SyncClient.Event cases (transferAccept, transferReject, transferReady, transferCommitted, transferChunkAck) but didn't update the phone's demoHandle / event-handle switches, leaving NucleicRemote non-exhaustive and failing to build (pre-existing on dev). The phone isn't a transfer participant, so handle all of them as no-ops. Second time mesh work has broken the iOS target this way (cf. the listPeers fix). Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
@@ -816,7 +816,9 @@ final class RemoteStore: ObservableObject {
|
||||
case .setSessionShipBranch(let id, let branch):
|
||||
demoUpdateSession(id) { $0.demoCopy(shipBranch: .some(branch)) }
|
||||
case .hello, .listSessions, .listDashboard, .subscribe, .unsubscribe,
|
||||
.ping, .cancelQueuedMessage, .fetchDiff, .listPeers:
|
||||
.ping, .cancelQueuedMessage, .fetchDiff, .listPeers,
|
||||
// Mac↔Mac peer/transfer messages (mesh P4/P5) — the phone never sends these; no-op.
|
||||
.addressUpdate, .transferOffer, .transferChunk, .transferCommit, .transferCancel:
|
||||
break // passive / already handled by the seeded fixtures (demo has no mesh peers)
|
||||
}
|
||||
}
|
||||
@@ -1114,6 +1116,10 @@ final class RemoteStore: ObservableObject {
|
||||
}
|
||||
connectPlan = nil
|
||||
scheduleRetry()
|
||||
case .transferAccept, .transferReject, .transferReady, .transferCommitted, .transferChunkAck:
|
||||
// Mac↔Mac session transfer (mesh P5) events. The phone isn't a transfer participant,
|
||||
// so these are informational-only here — ignore them.
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user