ios: load user data after deleting users and creating a new one
This commit is contained in:
parent
bce829ef58
commit
7f9058226f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user