Fix iOS build: handle ClientMsg.listPeers in the demo simulator
The mesh/session-transfer work added `ClientMsg.listPeers`, but the phone's demo-mode `demoHandle` switch (which lists its cases explicitly, no default) was never updated — leaving the NucleicRemote target non-exhaustive and failing to build (pre-existing on dev, surfaced by the iPad-port merge). Demo mode has no real mesh peers, so treat `.listPeers` as passive alongside the other read-only requests. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
@@ -816,8 +816,8 @@ 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:
|
||||
break // passive / already handled by the seeded fixtures
|
||||
.ping, .cancelQueuedMessage, .fetchDiff, .listPeers:
|
||||
break // passive / already handled by the seeded fixtures (demo has no mesh peers)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user