mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 17:31:55 +00:00
ios: load user data after deleting users and creating a new one
This commit is contained in:
1 parent
bce829ef58
commit
7f9058226f
1 file changed
+4
@@ -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