ios: load user data after deleting users and creating a new one

This commit is contained in:
Avently 2024-01-29 05:41:18 -08:00
parent bce829ef58
commit 7f9058226f

View File

@ -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