mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 12:53:18 +00:00
fix review comments
This commit is contained in:
1 parent
75b59f4dec
commit
d9d6acd97f
14 files changed
+107
-129
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user