align and simplify core/UI/UXcanvas

This commit is contained in:
Alain Brenzikofer
2026-09-30 20:11:51 +02:00
parent 10c456b057
commit 6bc2f4450e
26 changed files with 634 additions and 460 deletions
+2 -2
View File
@@ -1046,8 +1046,8 @@ func apiConnectPlan(connLink: String, resolveMode: PlanResolveMode = .unknown, l
return nil
}
let r: APIResult<ChatResponse1>? = await chatApiSendCmdWithRetry(.apiConnectPlan(userId: userId, connLink: connLink, resolveMode: resolveMode, linkOwnerSig: linkOwnerSig), inProgress: inProgress)
if case let .result(.connectionPlan(_, connLink, planSimplexName, otherSimplexName, connPlan)) = r {
return ConnectionPlanResult(connLink: connLink, planSimplexName: planSimplexName, otherSimplexName: otherSimplexName, connectionPlan: connPlan)
if case let .result(.connectionPlan(_, connLink, planSimplexName, otherSimplexName, connPlan, localChats, offerLookup)) = r {
return ConnectionPlanResult(connLink: connLink, planSimplexName: planSimplexName, otherSimplexName: otherSimplexName, connectionPlan: connPlan, localChats: localChats ?? [], offerLookup: offerLookup ?? false)
}
// a .never (typing) search that matches nothing locally is not an error to surface
if case .error(.error(.notResolvedLocally)) = r { return nil }