mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-30 19:56:10 +00:00
ios: load user data after deleting users and creating a new one
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user