fix review comments

This commit is contained in:
Alain Brenzikofer committed 2026-09-24 08:48:29 +02:00
1 parent 75b59f4dec
commit d9d6acd97f
14 files changed
+107 -129

No files matched your search

-2
View File
@@ -1390,8 +1390,6 @@ 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