From 7f9058226fd6815d9d4579eee5c657d7f9dea15a Mon Sep 17 00:00:00 2001 From: Avently Date: Mon, 29 Jan 2024 05:41:18 -0800 Subject: [PATCH] ios: load user data after deleting users and creating a new one --- apps/ios/Shared/Views/Onboarding/CreateProfile.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/ios/Shared/Views/Onboarding/CreateProfile.swift b/apps/ios/Shared/Views/Onboarding/CreateProfile.swift index 3f835e25d4..c08f2c9866 100644 --- a/apps/ios/Shared/Views/Onboarding/CreateProfile.swift +++ b/apps/ios/Shared/Views/Onboarding/CreateProfile.swift @@ -169,6 +169,10 @@ private func createProfile(_ displayName: String, showAlert: (UserProfileAlert) m.currentUser = try apiCreateActiveUser(profile) if m.users.isEmpty { try startChat() + // Chat was started but no user data was loaded at the moment + if m.chats.isEmpty { + try getUserChatData() + } withAnimation { onboardingStageDefault.set(.step3_CreateSimpleXAddress) m.onboardingStage = .step3_CreateSimpleXAddress