From 265a8ebba4c8929c7449765364880f548f1354cd Mon Sep 17 00:00:00 2001 From: Narasimha-sc <166327228+Narasimha-sc@users.noreply.github.com> Date: Mon, 19 Oct 2026 11:01:39 +0000 Subject: [PATCH] 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. --- apps/ios/Shared/Views/NewChat/NewChatView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/ios/Shared/Views/NewChat/NewChatView.swift b/apps/ios/Shared/Views/NewChat/NewChatView.swift index b558802d36..06675856b5 100644 --- a/apps/ios/Shared/Views/NewChat/NewChatView.swift +++ b/apps/ios/Shared/Views/NewChat/NewChatView.swift @@ -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 {