ios: stop chat after deleting the last profile (#3935)

This commit is contained in:
Stanislav Dmitrenko
2024-03-21 20:58:04 +07:00
committed by GitHub
parent a16e3eebd1
commit b220ea23e2

View File

@@ -276,6 +276,7 @@ struct UserProfilesView: View {
// Deleting the last visible user while having hidden one(s)
try await deleteUser()
try await changeActiveUserAsync_(nil, viewPwd: nil)
try? await stopChatAsync()
await MainActor.run {
onboardingStageDefault.set(.step1_SimpleXInfo)
m.onboardingStage = .step1_SimpleXInfo