build iOS app blindly

This commit is contained in:
alain@encointer.org committed 2026-09-23 18:05:37 +02:00
1 parent 763048ac24
commit 9e243c021c
6 files changed
+340 -15

No files matched your search

+3 -1
View File
@@ -1051,7 +1051,7 @@ func apiConnectPlan(connLink: String, resolveMode: PlanResolveMode = .unknown, l
}
// a .never (typing) search that matches nothing locally is not an error to surface
if case .error(.error(.notResolvedLocally)) = r { return nil }
if let r { await apiConnectResponseAlert(r) }
if let r, inProgress.boxedValue { await apiConnectResponseAlert(r) }
return nil
}
@@ -1390,6 +1390,8 @@ func showSetSimplexNameError<R>(_ r: APIResult<R>, isChannel: Bool) async {
func apiSetUserDomain(_ simplexDomain: String?) async throws -> User {
let userId = try currentUserId("apiSetUserDomain")
let r: APIResult<ChatResponse1> = await chatApiSendCmd(.apiSetUserDomain(userId: userId, simplexDomain: simplexDomain))
// a name claimed or dropped here must not keep reading from the answer taken before
if let d = ChatModel.shared.currentUser?.profile.contactDomain?.domain { NameResolution.forget(d) }
switch r {
case let .result(.userProfileUpdated(user, _, _, _)): return user
case let .result(.userProfileNoChange(user)): return user