mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-06 20:48:27 +00:00
align and simplify core/UI/UXcanvas
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user