mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 10:43:05 +00:00
ios: don't leave the new chat profile picker stuck when the change was cancelled
apiChangeConnectionUser returns nil when the user cancels the Retry alert, and the picker kept its switching status, so the spinner overlay stayed and the picker stopped responding. Reset the status and the selected profile, as the error path does, without the alert.
This commit is contained in:
1 parent
27f0e133ac
commit
265a8ebba4
1 file changed
+7
@@ -477,6 +477,13 @@ private struct ActiveProfilePicker: View {
|
||||
)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
await MainActor.run {
|
||||
profileSwitchStatus = .idle
|
||||
if let currentUser = chatModel.currentUser {
|
||||
selectedProfile = currentUser
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
await MainActor.run {
|
||||
|
||||
Reference in new issue
Block a user